GridPoint2 Operators and Type Conversions |
The GridPoint2 type exposes the following members.
Name | Description | |
---|---|---|
Addition |
Adds two points by adding their corresponding coordinates.
| |
Division(GridPoint2, GridPoint2) |
Divides corresponding coordinates using integer division.
| |
Division(GridPoint2, Int32) |
Divides each coordinate by the integer using integer division.
| |
Equality |
Compares two points for equality.
| |
(GridPoint2 to Vector2) |
Converts this grid point to a Vector2.
| |
Inequality |
Checks whether two points are not equal.
| |
Modulus |
Divides corresponding coordinates using integer division and return the
remainders as a new grid point.
| |
Multiply(Int32, GridPoint2) |
Multiplies each coordinate with the integer.
| |
Multiply(GridPoint2, GridPoint2) |
Multiplies corresponding coordinates.
| |
Multiply(GridPoint2, Int32) |
Multiplies each coordinate with the integer.
| |
Subtraction |
Subtracts one point from another by subtracting corresponding coordinates.
| |
UnaryNegation |
Negates the given vector.
| |
UnaryPlus |
This operations does not affect the point.
|