Click or drag to resize

DiamondPoint Methods

The DiamondPoint 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(DiamondPoint)
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
Public methodGetColor1_2
Public methodGetColor4
Public methodGetEdgeAnchor
Public methodGetEdgeFaces
Public methodGetEdges
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodGetVertexAnchor
Public methodGetVertexFaces
Public methodGetVertices
Public methodMagnitude
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 methodRotate180
Public methodRotate270
Public methodRotate90
Public methodScaleDown
Public methodScaleUp
Public methodSubtract
Subtracts the other point from this point, and returns the result.
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