PlaneIntersectLine(Vec3, Vec3, Double) Method |
返回用户文档首页
判断一条直线是否与平面相交,并计算交点。
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntaxpublic bool IntersectLine(
Vec3 pt0,
Vec3 pt1,
out double ret_t
)
Parameters
- pt0 Vec3
- 直线点1。
- pt1 Vec3
- 直线点2。
- ret_t Double
- 输出参数,如果相交,则表示射线起点到交点的距离。
Return Value
Boolean如果射线与平面相交,返回true;否则返回false。
Remarks
如果射线与平面平行,则返回false。
See Also