CairoPoint Structure |
Namespace: Gamelogic.Grids
[SerializableAttribute] [VersionAttribute(1, 2, 0)] [ExperimentalAttribute] [ImmutableAttribute] public struct CairoPoint : ISplicedPoint<CairoPoint, PointyHexPoint>, IGridPoint<CairoPoint>, IEquatable<CairoPoint>, IGridPoint, ISplicedVectorPoint<CairoPoint, PointyHexPoint>
The CairoPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| CairoPoint |
| 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(CairoPoint) | ||
| 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
| |
| GetColor12 | ||
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetType | (Inherited from Object.) | |
| IncIndex | ||
| InvertIndex | ||
| MoveBackBy | ||
| MoveBy | ||
| Negate | ||
| ScaleDown | ||
| ScaleUp | ||
| Subtract | ||
| ToString | (Overrides ValueTypeToString.) | |
| Translate |
| Name | Description | |
|---|---|---|
| MainDirections | ||
| SpliceCount | ||
| Zero |
| Name | Description | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| IGridPointCairoPointSpliceCount |