Click or drag to resize

PointyHexPoint Methods

The PointyHexPoint type exposes the following members.

Methods
  NameDescription
Public method__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
Public methodDistanceFrom
The lattice distance from this point to the other.
Public methodDiv
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)
Public methodDot
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(PointyHexPoint)
Public methodGetColor
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
Public methodGetColor1_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.
Public methodGetColor1_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.
Public methodGetColor1_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.
Public methodGetColor2_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.
Public methodGetColor2_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.
Public methodGetColor3_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.
Public methodGetColor3_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.
Public methodGetColor5_5
Since version 1.7
Public methodGetColor6
Since version 1.7
Public methodGetEdgeAnchor
Public methodGetEdges
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetNeighbors
Public methodGetType (Inherited from Object.)
Public methodGetVertexAnchor
Public methodGetVertexFaceAnchor
Public methodGetVertexFaces
Public methodGetVertices
Public methodStatic memberIsEquivalentUnderTransformsAndTranslation
Public methodIsInNegativeHalfPlaneX
Public methodIsInNegativeHalfPlaneY
Public methodIsInNegativeHalfPlaneZ
Public methodIsInPositiveHalfPlaneX
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
Public methodIsInPositiveHalfPlaneY
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
Public methodIsInPositiveHalfPlaneZ
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
Public methodIsInsideHexagon(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
Public methodIsInsideHexagon(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
Public methodIsInsidePolygon
Public methodIsInsideTriangle
Public methodMagnitude
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.
Public methodMod
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)
Public methodMoveBackBy
Public methodMoveBy
Public methodMul
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)
Public methodNegate
Public methodPerp
Public methodPerpDot
Public methodPointFromVertexAnchor
Public methodReflectAboutX
Public methodReflectAboutY
Public methodRotate120
Public methodRotate120AndReflectAboutY
Public methodRotate180
Public methodRotate180AndReflectAboutY
Public methodRotate240
Public methodRotate240AndReflectAboutY
Public methodRotate300
Public methodRotate300AndReflectAboutY
Public methodRotate60
Public methodRotate60AndReflectAboutY
Public methodScaleDown
Public methodScaleUp
Public methodSubtract
Subtracts the other point from this point, and returns the result.
Public methodStatic memberToCanonicalPosition
Public methodToString (Overrides ValueTypeToString.)
Public methodTranslate
This is a norm defined on the point, such that `p1.Difference(p2).Abs()` is equal to `p1.DistanceFrom(p2)`.
Top
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
See Also