Click or drag to resize

PlaneIntersectLine(Vec3, Vec3, Vec3) Method

返回用户文档首页
判断一条直线是否与平面相交,并计算交点。

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntax
C#
public bool IntersectLine(
	Vec3 pt0,
	Vec3 pt1,
	out Vec3 ret_pt
)

Parameters

pt0  Vec3
直线点1。
pt1  Vec3
直线点2。
ret_pt  Vec3
输出交点。

Return Value

Boolean
如果射线与平面相交,返回true;否则返回false。
Remarks
如果射线与平面平行,则返回false。
See Also