Click or drag to resize

LineIntersect(Line, Double, Double, Double) Method

返回用户文档首页
计算当前直线与另一条直线的最短交线。

Namespace: LoongCAD.Geometry.Friendly
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.12 (2025.0.9.12)
Syntax
C#
public bool Intersect(
	Line otherLine,
	out double t0,
	out double t1,
	double angularEpsi = 0
)

Parameters

otherLine  Line
要检测交点的另一条直线。
t0  Double
交点在当前直线上的线性参数,如果直线平行则返回0。
t1  Double
交点在输入直线上的线性参数,如果直线平行则返回0。
angularEpsi  Double  (Optional)
用于判断直线是否平行的角度容差值,单位为弧度,默认为GeometryConstants.ANGULAR_EPSILON。

Return Value

Boolean
如果直线不平行且交点存在于直线范围内,则返回true;否则返回false。
See Also