LineSegmentIntersect(LineSegment, Point, Point, Double) Method |
返回用户文档首页
计算当前线段与另一条线段的最短交线。
Namespace: LoongCAD.Geometry.FriendlyAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.12 (2025.0.9.12)
Syntaxpublic bool Intersect(
LineSegment otherLine,
out Point pt0,
out Point pt1,
double angularEpsi = 0
)
Parameters
- otherLine LineSegment
- 要检测交点的另一条线段。
- pt0 Point
- 当前线段上的的交点,如果线段平行则返回当前线段的起点。
- pt1 Point
- 输入线段上的交点,如果线段平行则返回另一条线段的起点。
- angularEpsi Double (Optional)
- 用于判断直线是否平行的角度容差值,单位为弧度,默认为GeometryConstants.ANGULAR_EPSILON。
Return Value
Boolean如果线段不平行且交点存在于线段范围内,则返回true;否则返回false。
See Also