Summary
Describes a vertex in a pentagonal grid using a system of four base vectors, which are unit vectors 36° from one
another. Used by
Penrose and
PentaCell.
Constructors
Static methods
Instance methods
bool | | Refer to the documentation for IEquatable<Pentavector>.Equals. |
bool | | Refer to the documentation for object.Equals. |
int | | Refer to the documentation for object.GetHashCode. |
Pentavector | Rotate(int clockwiseAmount = 1) |
Rotates the vector the specified clockwiseAmount times 36°. |
string | | Refer to the documentation for object.ToString. |
Operators
Instance properties
int | |
The A component of this vector, which extends outward from the origin at a 54° angle counter-clockwise (SVG)
or clockwise (geometry) from the x-axis. |
int | |
The B component of this vector, which extends outward from the origin at an 18° angle counter-clockwise (SVG)
or clockwise (geometry) from the x-axis. |
int | |
The C component of this vector, which extends outward from the origin at an 18° angle clockwise (SVG) or
counter-clockwise (geometry) from the x-axis. |
int | |
The D component of this vector, which extends outward from the origin at a 54° angle clockwise (SVG) or
counter-clockwise (geometry) from the x-axis. |
Pentavector | |
Returns a new Pentavector whose direction is the same as this vector, but with a length
multiplied by 1/φ. φ is the golden ratio ((√(5)+1)/2). |
Pentavector | |
Returns a new Pentavector whose direction is the same as this vector, but with a length
multiplied by φ. φ is the golden ratio ((√(5)+1)/2). |
PointD | | Returns the 2D point represented by this vector. |
Static fields
Pentavector | |
Returns a Pentavector describing a unit vector at a 54° angle counter-clockwise (SVG) or
clockwise (geometry) from the x-axis. |
Pentavector | |
Returns a Pentavector describing a unit vector at a 18° angle counter-clockwise (SVG) or
clockwise (geometry) from the x-axis. |
Pentavector | |
Returns a Pentavector describing a unit vector at a 18° angle clockwise (SVG) or
counter-clockwise (geometry) from the x-axis. |
Pentavector | |
Returns a Pentavector describing a unit vector at a 54° angle clockwise (SVG) or
counter-clockwise (geometry) from the x-axis. |
Pentavector | |
Returns a Pentavector describing a unit vector pointing straight down (SVG) or up (geometry). |
Nested types
|
Describes a vertex in a grid constructed from Pentavector values. |