Return the length of the Line.
Returns true if the lines are collinear with each other.
Returns true if the given point is on this line. If clamp is true, only returns true if it is on this line segment.
Returns a human-readable description as a string in the form
line[p0<0, 0, 0>, p1<1, 0, 0>]
Note that the numbers returned are for display purposes only, and are not precise enough to guarantee exact re-creation.
Returns the three.js implementation object
Performs a 3D line intersection. Possible outcomes:
The Line to intersect with this one.
Defaults to false. If false, restricts the intersection to the line segments of each.
Defaults to false. If true, returns the projection of the intersection on this line along the normal defined by the cross product of the lines' directions.
This is like intersectLine, except it is uses lengthEpsilon to include intersections that might be within tolerance but fail in the more strict function. Note: This is not faster than intersectLine, since this calls it.
The segment to intersect.
This return true
if the two lines are parallel or anti-parallel.
If you need to make the distinction, take the dot product of their
directions.
The Line to compare against.
Returns the point at the given distance from p0.
Parameter as distance from p0.
Point along this at u from p0.
Returns true if the lines are within lengthEpsilon
of each other.
Line to compare to.
Line is a pure geometry object. It is used for geometric computations within rules. It is based on the three.js Line3 object.
Note: use
R.makeLine(p0, p1)
to create a Line primitive between two Point primitives p0 and p1. You can usenew Line(line3)
if you have a three.js Line3 object (which should be rare).