FlatTriPoint Structure |
Namespace: Gamelogic.Grids
[SerializableAttribute] [VersionAttribute(1, 0, 0)] [ImmutableAttribute] public struct FlatTriPoint : ISupportsVertices<PointyHexPoint>, ISupportsEdges<PointyRhombPoint>, IVertex<PointyHexPoint>, ISplicedPoint<FlatTriPoint, PointyHexPoint>, IGridPoint<FlatTriPoint>, IEquatable<FlatTriPoint>, IGridPoint, ISplicedVectorPoint<FlatTriPoint, PointyHexPoint>
The FlatTriPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| FlatTriPoint |
| Name | Description | |
|---|---|---|
| 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(FlatTriPoint) | ||
| 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 | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| IGridPointFlatTriPointSpliceCount |