LineIntersect(Line, Line, Vec3, Vec3, Double) Method | 
返回用户文档首页
            计算两条直线的交点(投影到各自直线上)
            
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.17 (2025.0.9.17)
Syntaxpublic static bool Intersect(
	Line line0,
	Line line1,
	out Vec3 pt0,
	out Vec3 pt1,
	double tol = 0
)
Parameters
- line0  Line
 - 第一条直线
 - line1  Line
 - 第二条直线
 - pt0  Vec3
 - [输出]第一条直线上的交点
 - pt1  Vec3
 - [输出]第二条直线上的交点
 - tol  Double  (Optional)
 - 用于判断直线是否平行的容差值,默认为0.0。
 
Return Value
Boolean如果直线不平行且存在交点,则返回true;否则返回false。
See Also