PointyHexPoint Methods |
The PointyHexPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| __GetColor__ReferenceImplementation |
Gives a coloring of the grid such that
if a point p has color k, then all points
p + m[ux, 0] + n[vx, vy] have the same color
for any integers a and b.
More information anout grid colorings:
http://gamelogic.co.za/2013/12/18/what-are-grid-colorings/
Since version 1.7
| |
| DistanceFrom |
The lattice distance from this point to the other.
| |
| Div |
Gives a new point that represents the
first point divided by the second point
component-wise. The division is integer
division.
Since version 1.6 (Rect)
Since version 1.7 (other)
| |
| Dot | ||
| Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
| Equals(PointyHexPoint) | ||
| GetColor |
Gives a coloring of the grid such that
if a point p has color k, then all points
p + m[ux, 0] + n[vx, vy] have the same color
for any integers a and b.
More information anout grid colorings:
http://gamelogic.co.za/2013/12/18/what-are-grid-colorings/
Since version 1.7
| |
| GetColor1_1 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor1_2 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor1_3 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor2_2 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor2_4 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor3_2 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor3_7 |
Generates a coloring with the following pattern:
Light Blue corresponds to 0.
Light Green corresponds to 1.
Light Yellow corresponds to 2.
Light Red corresponds to 3.
Blue corresponds to 4.
Green corresponds to 5.
Yellow corresponds to 6.
| |
| GetColor5_5 |
Since version 1.7
| |
| GetColor6 |
Since version 1.7
| |
| GetEdgeAnchor | ||
| GetEdges | ||
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetNeighbors | ||
| GetType | (Inherited from Object.) | |
| GetVertexAnchor | ||
| GetVertexFaceAnchor | ||
| GetVertexFaces | ||
| GetVertices | ||
| IsEquivalentUnderTransformsAndTranslation | ||
| IsInNegativeHalfPlaneX | ||
| IsInNegativeHalfPlaneY | ||
| IsInNegativeHalfPlaneZ | ||
| IsInPositiveHalfPlaneX |
Whether this point is inside the half plane x >= x0.
see http://devmag.org.za/2013/08/31/geometry-with-hex-coordinates/
Since version 1.3
| |
| IsInPositiveHalfPlaneY |
Whether this point is inside the half plane y >= x0.
see http://devmag.org.za/2013/08/31/geometry-with-hex-coordinates/
Since version 1.3
| |
| IsInPositiveHalfPlaneZ |
Whether this point is inside the half plane z >= z0.
see http://devmag.org.za/2013/08/31/geometry-with-hex-coordinates/
Since version 1.3
| |
| IsInsideHexagon(Int32) |
Whether this point is in the hexagon with the given radius
and center at the origin.
The origin is considered the hexagon with zero radius.
see http://devmag.org.za/2013/08/31/geometry-with-hex-coordinates/
Since version 1.3
| |
| IsInsideHexagon(PointyHexPoint, Int32) |
Whether this point is in the hexagon with the given radius
and given center.
A single point is considered a hexagon with zero radius.
see http://devmag.org.za/2013/08/31/geometry-with-hex-coordinates/
Since version 1.3
| |
| IsInsidePolygon | ||
| IsInsideTriangle | ||
| Magnitude |
The magnitude of a hex point is the hex-distance between the point and the origin.
This notation makes using hex points useful to use as vectors.
| |
| Mod |
Gives a new point that represents the
reminder when the first point is divided
by the second point component-wise. The
division is integer division.
Since version 1.6 (Rect)
Since version 1.7 (other)
| |
| MoveBackBy | ||
| MoveBy | ||
| Mul |
Gives a new point that represents the
first point multiplied by the second point
component-wise.
Since version 1.6 (Rect)
Since version 1.7 (other)
| |
| Negate | ||
| Perp | ||
| PerpDot | ||
| PointFromVertexAnchor | ||
| ReflectAboutX | ||
| ReflectAboutY | ||
| Rotate120 | ||
| Rotate120AndReflectAboutY | ||
| Rotate180 | ||
| Rotate180AndReflectAboutY | ||
| Rotate240 | ||
| Rotate240AndReflectAboutY | ||
| Rotate300 | ||
| Rotate300AndReflectAboutY | ||
| Rotate60 | ||
| Rotate60AndReflectAboutY | ||
| ScaleDown | ||
| ScaleUp | ||
| Subtract |
Subtracts the other point from this point, and returns the result.
| |
| ToCanonicalPosition | ||
| ToString | (Overrides ValueTypeToString.) | |
| Translate |
This is a norm defined on the point, such that `p1.Difference(p2).Abs()` is equal to
`p1.DistanceFrom(p2)`.
|
| Name | Description | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |