Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.Pentavector

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

Pentavector(int a, int b, int c, int d)
Constructor.

Static methods

Pentavector
Base(int angle)
Returns a Pentavector describing a unit vector at the specified angle. (see also remarks)

Instance methods

boolRefer to the documentation for IEquatable<Pentavector>.Equals.
bool
Equals(object obj)
  • Overrides: object.Equals(object)
Refer to the documentation for object.Equals.
int
  • Overrides: object.GetHashCode()
Refer to the documentation for object.GetHashCode.
Pentavector
Rotate(int clockwiseAmount = 1)
Rotates the vector the specified clockwiseAmount times 36°.
string
  • Overrides: object.ToString()
Refer to the documentation for object.ToString.

Operators

PentavectorAddition operator.
boolEquality comparison.
Pentavector.VertexImplicit operator converting Pentavector to Vertex.
boolInequality comparison.
Pentavector
operator*(Pentavector one, int two)
Multiplication operator.
Pentavector
operator*(int one, Pentavector two)
PentavectorSubtraction operator.
PentavectorUnary negation operator.

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).
PointDReturns 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. (see also remarks)