Line3 class

A geometric line segment represented by a start and end point.

Constructors

Line3([Vector3? start, Vector3? end])
start - Start of the line segment. Default is (0, 0, 0).

Properties

end Vector3
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Vector3
getter/setter pair

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 the page:.start start point of the line.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited