Line3 class
A geometric line segment represented by a start and end point.
Constructors
Properties
Methods
-
applyMatrix4(
Matrix4 matrix) → Line3 - Applies a matrix transform to the line segment.
-
at(
double t, Vector3 target) → Vector3 -
t
- Use values 0-1 to return a position along the line segment. -
clone(
) → Line3 - Returns a new Line3 with the same start and end vectors as this one.
-
closestPointToPoint(
Vector3 point, bool clampToLine, Vector3 target) → Vector3 -
point
- return the closest point on the line to this point. -
closestPointToPointParameter(
Vector3 point, bool clampToLine) → double -
point
- the point for which to return a point parameter. -
delta(
Vector3 target) → Vector3 -
target
— the result will be copied into this Vector3. -
distance(
) → double -
Returns the Euclidean distance
(straight-line distance) between the line's
start and
page:.end end
points. -
distanceSq(
) → double - Returns the square of the Euclidean distance (straight-line distance) between the line's start and end vectors.
-
equals(
Line3 line) → bool -
line
- Line3 to compare with this one. -
getCenter(
Vector3 target) → Vector3 -
target
— the result will be copied into this Vector3. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFrom(
Line3 line) → Line3 - Copies the passed line's start and end vectors to this line.
-
setStartEnd(
Vector3 start, Vector3 end) → Line3 -
start
- set thepage:.start start point
of the line. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited