This constructor initializes the line object to use start as the start point, and end as the endpoint. Both points must be in WCS coordinates.
When this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.
Normalized direction vector of this line
The line's endpoint in WCS coordinates
End point of this curve. If the curve is closed, coordinates of start point will be equal to coordinates of end point.
The middle point of this line.
The line's startpoint in WCS coordinates
Start point of this curve. If the curve is closed, coordinates of start point will be equal to coordinates of end point.
Return a point at a certain position along the line. When t = 0, it returns the start point, and when t = 1 it returns the end point.
Use values 0-1 to return a position along the line.
The result will be copied into this point.
Return a point at a certain position along the line.
Return a point at a certain position along the line.
flag
is false, use the length from start point to determinate the pointflag
is true, use the length from end point to determinate the pointUse this length value to return a position along the line.
Return a point at a certain position along the line.
Return the closets point on the line. If clampToLine is true, then the returned value will be clamped to the line segment.
Return the closest point on the line to this point.
Whether to clamp the returned value to the line segment.
The result will be copied into this point.
Return the closets point on the line.
Return a point parameter based on the closest point as projected on the line segment. If clampToLine is true, then the returned value will be between 0 and 1.
Input the point for which to return a point parameter.
Whether to clamp the result to the range [0, 1].
Return a point parameter based on the closest point as projected on the line segment.
Returns the delta vector of the line segment (end vector minus the start vector).
The result will be copied into this vector.
Return the delta vector of the line segment (end vector minus the start vector).
Extend this line with the specified length
Input the length of extension
Input the flag to determinate which point is used to calculate the length
Check whether the specified point is on this line.
Input point to check
Return true if the specified point is on this line. Otherwise, return false.
Finds the point on the line that is perpendicular to the given point. When you need the shortest distance between the given point and the line, perpPoint gives the point on the line that is the closest to the given point.
Input one point to calculate the point on the line that is the closest to this point
Return the point on the line that is the closest to the given point.
Project a 3d point onto this line
Return new shape translated by given vector. Translation vector may be also defined by a pair of numbers.
The class represents one 3d line geometry specified by its start point and end point.