StaticPARALLELConstant to give to fromPointAndLine: build the parallel line.
StaticPERPENDICULARConstant to give to fromPointAndLine: build the perpendicular line.
Output option for the next tex or display: ax+by+c=0 (default). Chainable.
Output option for the next tex or display: ax+by=-c. Chainable.
Output option for the next tex or display: y=mx+h, or x=k for a vertical line. Chainable.
Output option for the next tex or display: a point and a direction vector. Chainable.
Output option for the next tex or display: the parametric system of x and y. Chainable.
ASCIIMath rendering of the current state (terminal output, not chainable).
Intercept h of y = mx + h: -c/b. Infinite for a vertical line.
Normal vector (a, b).
A point of the line, as a vector. Setting it moves the line through that point and keeps its direction.
Slope m of y = mx + h: -a/b. Infinite for a vertical line.
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.
Intersection with another line, as {point, hasIntersection, isParallel, isSame}.
The point is null when the lines are parallel or the same.
True when both lines are the same line, whatever their coefficients.
True when the slope is zero.
True when the lines have the same direction but are not the same line.
True when the slope is infinite.
A random point close to the line but not on it.
Optionalk: number
same as in randomPoint.
Give the equation the smallest integer coefficients with no common divisor.
StaticfromBuild the line ax + by + c = 0. Fractional coefficients are multiplied to become integers.
StaticfromBuild a line from an equation in x and y of the first degree.
StaticfromStaticfromStaticfromStaticfromThe line through a point, parallel (default) or perpendicular to a line.
StaticfromStaticfrom
A line of the plane, stored by the coefficients of
ax + by + c = 0and a point of the line. Built from an equation ("2x+3y-6=0"), two points, a point and a direction vector, or three coefficients. The output defaults to the canonical form; asCartesian, asMxh, asParametric and asSystem choose another one for the nexttexordisplayonly.Example