Creates an empty line, or a line through two points, or a line through a point with a direction.
Output option for the next tex or display: the symmetric form (x-a)/p = (y-b)/q = (z-c)/r. Chainable.
Output option for the next tex or display: a point and a direction vector (default). Chainable.
Output option for the next tex or display: the parametric system of x, y and z. Chainable.
The direction vector, as a copy.
ASCIIMath rendering of the current state (terminal output, not chainable).
The reference point, as a copy.
LaTeX rendering of the current state (terminal output, not chainable).
Full duplicate of this instance, including display state (selected form
and options set via as*** / with***). Distinct from copy.
Copy the mathematical state of another instance into this (display
state is NOT transferred — the receiver keeps its own formatting). Entry
point used when constructing/parsing from a same-type input. Distinct from
clone. Classes without a real implementation throw
NotImplementedError.
Computes the relationship between this line and line.
isSame: coincident lines (infinitely many common points).isParallel: parallel non-coincident lines.hasIntersection + point: lines meet at exactly one point.True when both lines are the same line, whatever their reference point and direction vector.
Returns true when the direction vectors are orthogonal (90°), regardless of whether the lines intersect.
True when the directions are parallel and the lines are not the same.
Returns true when the lines are both orthogonal and intersecting (strict perpendicularity).
A random point close to the line but not on it.
Optionalk: number
same as max in randomPoint.
A random point of the line: the reference point moved along the direction vector by a non-zero integer
between -max and max.
Give the direction vector the smallest integer coordinates, with a positive first coordinate.
StaticfromStaticfrom
A line of space, stored by a point
OAand a direction vectord. Built from two points or from a point and a direction vector. The output defaults to the parametric form; asSystem and asCartesian choose another one for the nexttexordisplayonly.Example