GridPoint2 Structure 
Namespace: Gamelogic.Grids2
[SerializableAttribute] public struct GridPoint2 : IEquatable<GridPoint2>
The GridPoint2 type exposes the following members.
Name  Description  

GridPoint2 
Creates a new instance of the GridPoint2 struct.

Name  Description  

Add 
Adds an other grid point to this grid point and returns the result.
 
Div(Int32)  Obsolete.  
Div(GridPoint2)  Obsolete.
Gives a new point that represents the
first point divided by the second point
componentwise.The division is integer
division.
 
Dot 
Calculates the dot product between this grid point and another.
 
Equals(Object)  (Overrides ValueTypeEquals(Object).)  
Equals(GridPoint2) 
Compares this grid point with another grid point for
equality. Two grid points are equal if their respective coordinates are equal.
 
FloorDiv(Int32) 
Divides each coordinate with r, using integer floor division.
 
FloorDiv(GridPoint2) 
Gives a new point that represents the
first point divided by the second point
componentwise.The division is integer
division.
 
FloorMod 
Gives a new point that represents the
reminder when the first point is divided
by the second point componentwise. The
division is integer floor division.
 
GetColor(ColorFunction) 
Gets the color index for this point for the given color function.
 
GetColor(Int32, Int32, Int32) 
Gets the color index for this point for the given coloring parameters.
 
GetForwardVectorRays 
Gets the maps that represent the forward vector rays through this point in the given list of directions.
 
GetHashCode  (Overrides ValueTypeGetHashCode.)  
GetReverseVectorRays 
Gets the maps that represent the reverse vector lines through this point in the given list of directions.
 
GetType  (Inherited from Object.)  
GetVectorLine 
Gets the map that represents a line through this point in the given direction.
 
GetVectorLines 
Gets the maps that represent the vector lines through this point in the given list of directions.
 
GetVectorNeighbors 
Gets the vector neighbors of this point in the given direction.
 
HadamardMul  Obsolete.  
HexDot 
Calculates the hexgrid equivalent for the dot product.
 
Max 
Calculates a new grid point with coordinates the maximum of the respective coordinates of
two grid points.
 
Min 
Calculates a new grid point with coordinates the minimum of the respective coordinates of
two grid points.
 
Mod  Obsolete.
Gives a new point that represents the
reminder when the first point is divided
by the second point componentwise.The
division is integer division.
 
Mul(Int32) 
Multiplies each coordinate with the specified integer.
 
Mul(GridPoint2) 
Gives a new point that represents the
first point multiplied by the second point
componentwise.
 
Negate 
Returns the point with each coordinate negated.
 
Perp 
Calculates the vector perpendicular to this vector (rotated counterclockwise).
 
PerpDot 
Calculates the perp dot product between this grid point and another.
 
Subtract 
Subtracts the other point from this point, and returns the result.
 
To3DXY 
Converts this point to GridPoint 3.
 
To3DXZ 
Converts the point to GridPoint2.
 
ToString  (Overrides ValueTypeToString.)  
ToVector2 
Converts this grid point to a Vector2.
 
TruncDiv(Int32) 
Divides each coordinate with r, using integer trunc division.
 
TruncDiv(GridPoint2) 
Gives a new point that represents the
first point divided by the second point
componentwise.The division is integer
division.
 
TruncMod 
Gives a new point that represents the
reminder when the first point is divided
by the second point componentwise. The
division is integer trunc division.

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.

Name  Description  

One 
The grid point with all coordinates equal to 1.
 
Zero 
The zero grid point, also called the origin. All coordinates are 0.

Name  Description  

Mul  (Defined by MatrixExtensions.) 