The coordinate values are stored in a number array. This should be convenient and efficient for tensor calculations.
The scalar part of this multivector.
The scalar part of this multivector.
The pseudoscalar part of this multivector.
The pseudoscalar part of this multivector.
The coordinate corresponding to the e1 basis vector, without the unit of measure.
The coordinate corresponding to the e1 basis vector, without the unit of measure.
The coordinate corresponding to the e2 basis vector, without the unit of measure.
The coordinate corresponding to the e2 basis vector, without the unit of measure.
~ (tilde) produces reversion.
grade(log(this), 2)
Computes the
Computes the inverse of this multivector, if it exists.
Determines whether this multivector has only grade 0 and grade 2 components.
Computes the square root of the squared norm.
Intentionally undocumented.
Intentionally undocumented.
The
G2class represents a multivector for a 2-dimensional vector space with a Euclidean metric.The
G2class is immutable, making it easy to reason about values.The
G2class supports units of measures.The immutable nature of the
G2
makes it less suitable for high performance graphics applications.