- getFirstEndpoint
- getSecondEndpoint
- <init>
Initializes this line segment to have the given endpoints.
- firstEndpointContainsNaN
Test if the first endpoint of this line segment contains Double#NaN.
- getDirection
Computes the vector going from the first to the second endpoint of this line
segment.
- getDirectionCopy
Computes the vector going from the first to the second endpoint of this line
segment. WARNING: This
- getMidpoint
Computes the coordinates of the point located exactly at the middle of this line
segment.
- isBetweenEndpoints
Tests whether the projection of the given point onto this line segment is
located between the two en
- length
Computes the length of this line segment.
- orthogonalProjection
Computes the orthogonal projection of a 3D point on this 3D line segment. Edge
cases: * if the leng
- percentageAlongLineSegment
Computes a percentage along the line segment representing the location of the
given point once proje
- pointBetweenEndPointsGivenPercentage
Computes the coordinates of the point located at a given percentage on this line
segment:
pointToPac