DiamondPoint Structure |
Namespace: Gamelogic.Grids
[SerializableAttribute] [VersionAttribute(1, 0, 0)] [ImmutableAttribute] public struct DiamondPoint : IGridPoint<DiamondPoint>, IEquatable<DiamondPoint>, IGridPoint, IVectorPoint<DiamondPoint>, ISplicedVectorPoint<DiamondPoint, DiamondPoint>, ISupportsVertices<DiamondPoint>, ISupportsEdges<RectPoint>, IVertex<DiamondPoint>, IEdge<RectPoint>
The DiamondPoint type exposes the following members.
| Name | Description | |
|---|---|---|
| DiamondPoint |
Constructs a new DiamondPoint with the given coordinates.
|
| Name | Description | |
|---|---|---|
| BasePoint |
A Uniform point's base point is simply the point itself.
Makes it easier to implement generic algorithms.
Since version 1.1
| |
| SpliceCount | ||
| SpliceIndex | ||
| X |
The x-coordinate of this point. This need to be in XML
| |
| Y |
The y-coordinate of this point.
|
| 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(DiamondPoint) | ||
| 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 | ||
| GetColor1_2 | ||
| GetColor4 | ||
| GetEdgeAnchor | ||
| GetEdgeFaces | ||
| GetEdges | ||
| GetHashCode | (Overrides ValueTypeGetHashCode.) | |
| GetType | (Inherited from Object.) | |
| GetVertexAnchor | ||
| GetVertexFaces | ||
| GetVertices | ||
| Magnitude | ||
| 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 | ||
| Rotate180 | ||
| Rotate270 | ||
| Rotate90 | ||
| ScaleDown | ||
| ScaleUp | ||
| Subtract |
Subtracts the other point from this point, and returns the result.
| |
| 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.) |