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


Let's consider the line given by the equation: \[ y = 4x + 3 \] We can rearrange the equation to \[ 0 = 4x - y + 3 \] From this form we can directly read of the homogeneous coordinates which we need to construct the line in MathLib var l = new MathLib.Line([4, -1, 3]);


The function MathLib.Line.
The dimension of the line.
The number of entries in the vector.
The string "line".


Draws a line.
Determines if two lines are equal
Determines if a line is finite.
Determines if a line is parallel to an other line.
Calculates the meeting point of two lines.
Normalizes the line.
Calculates the parallel line through a given point.