PointyTriPoint Structure |
Namespace: Gamelogic.Grids
[SerializableAttribute] [VersionAttribute(1, 0, 0)] [ImmutableAttribute] public struct PointyTriPoint : ISupportsVertices<FlatHexPoint>, ISupportsEdges<FlatRhombPoint>, IVertex<FlatHexPoint>, ISplicedPoint<PointyTriPoint, FlatHexPoint>, IGridPoint<PointyTriPoint>, IEquatable<PointyTriPoint>, IGridPoint, ISplicedVectorPoint<PointyTriPoint, FlatHexPoint>
The PointyTriPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| PointyTriPoint |
| Name | Description | |
|---|---|---|
| AsHexPoint | ||
| BasePoint | ||
| I | ||
| SpliceIndex | ||
| X | ||
| Y | ||
| Z |
This is a redundant coordinate that is useful for certain algorithms and calculation.
The coordinates of a triangle satsify this identity: X + Y + Z + I = 0.
|
| Name | Description | |
|---|---|---|
| DecIndex | ||
| DistanceFrom | ||
| Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
| Equals(PointyTriPoint) | ||
| GetColor |
Gives a coloring of the grid such that
if a point p has color k, then all points
p + m[ux, 0 | 0] + n[vx, vy | 0] have the same color
for any integers a and b.
Since version 1.7
| |
| GetColor2 | ||
| GetColor4 | ||
| GetEdgeAnchor | ||
| GetEdges | ||
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetType | (Inherited from Object.) | |
| GetVertexAnchor | ||
| GetVertexFaceAnchor | ||
| GetVertexFaces | ||
| GetVertices | ||
| IncIndex | ||
| InvertIndex | ||
| MoveBackBy | ||
| MoveBy | ||
| Negate | ||
| PointFromVertexAnchor | ||
| ScaleDown | ||
| ScaleUp | ||
| Subtract | ||
| ToString | (Overrides ValueTypeToString.) | |
| Translate |
| Name | Description | |
|---|---|---|
| EdgeDirections | ||
| MainDirections | ||
| SpliceCount | ||
| VertexDirections |
I want it private, but the other part of the class needs it
| |
| VertexFaceDirections | ||
| Zero |
| Name | Description | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| IGridPointPointyTriPointSpliceCount |