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