MathLib.Point()

MathLib.Point is MathLib's implementation of points (by now only for two dimensional points). The function expects one argument, the array of entries of the . \[ \text{MathLib.Point}([a_1, a_2, \dots, a_n]) = \begin{pmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{pmatrix} \]

Examples

// The point with entries (1, 2) // can be constructed in two ways: // The homogeneous coordinates as array var v = new MathLib.Point([1, 2, 1]); // or the normal coordinates. var v = new MathLib.Point(1, 2);

Properties

.constructor
The function MathLib.Point.
.dimension
The dimension of the point.
.length
The number of entries in the vector.
.type
The string "point".

Methods

Static methods

.crossRatio()
The cross ratio of four points.
.I()
The Point (-i, 0, 1).
.J()
The Point (i, 0, 1).