Drawing3d documented Class Library

Triangle.Cross Method

"Cross" calculates more then the Method disjoint. In case of crossing, a value lam and the cross point is returned. This value ist between 0 and 1. The line is regarded as a bounded line. For the use of lam watch Plane

[Visual Basic]
Public Sub Cross( _
   ByVal L As LineType, _
   ByRef lam As Double, _
   ByRef pt As xyz _
)
[C#]
public bool Cross(
   LineType L,
   out double lam,
   out xyz pt
);

Parameters

L
A bounded line which will be checked
lam
Param which defines the cross point in the sense pt = L.P + L,Direction*lam
pt
Crosspoint

Return Value

returns true, if the Line crosses the Triangle, otherwise it returns false

See Also

Triangle Class | Drawing3d.Math Namespace