线的终点
Ending point of line or segment
线的起点
Starting point of line or segment
线段的中点
Gets the center point of the current line.
线的方向 (起点 -> 终点)
Gets the direction of the current line (start -> end)
线段的长度
Gets the length of the current line
线段长度的平方
Gets the squared length of the current line
计算点在线上的比例
Gets the interpolated number
目标点
是否将直线作为线段考虑(线段的取值范围只有 [0, 1])
获取点到线的距离
Gets the distance from the point to the current line
target point
Whether to treat the current line as a segment
获取点在线上的投影点
Gets the projected point of the point onto the current line
目标点 target point
是否线段 Whether to treat the current line as a segment
在将直线视为线段的情况下,如果投影点在线段外,是返回线段的端点还是 undefined. (When the projection point is beyond the line segment, use the end of the line segment as the projection point)
根据线性比例计算线上的一点
Gets linear interpolation between start and end of this line
和 line 是否正交垂直
Determine whether the current line and line area orthogonal
目标直线
和 line 是否平行
Determine whether the current line and line area parallel
目标直线
点是否在直线上
Determines if the point is on the line
目标点
容差
点是否在线段上
Determine if the point is on the segment
目标点
容差
Generated using TypeDoc
表示三维世界的一条线
Class representing a line in Three-dimensional coordinate system