线的终点
Ending point of line or segment
线的起点
Starting point of line or segment
线的方向角度
Gets the angle of the current line's direction (start -> end)
线段的中点
Gets the center point of the current line.
线的方向 (起点 -> 终点)
Gets the direction of the current line (start -> end)
线的正交左方向
Gets the direction orthogonal to the current line and pointing to the left
线段的长度
Gets the length of the current line
线段长度的平方
Gets the squared length of the current line
线的正交右方向
Gets the direction orthogonal to the current line and pointing to the right
计算点在线上的比例
Gets the interpolated number
获取点到线的距离
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 是否线段
When the projection point is beyond the line segment, use the end of the line segment as the projection point (当投影点超出线段时,是否使用线段端点作为投影点)
获取点在线的哪一侧
Gets which side of the current line the point is on
LineSide
根据线性比例计算线上的一点
Gets linear interpolation between start and end of this line
是否水平线
Determine whether the current line is a horizontal 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
是否竖直线
Determine whether the current line is a vertical line
Generated using TypeDoc
表示二维世界的一条线
Class representing a line in Two-dimensional coordinate system