An NDoc Documented Class Library

Plane.Cross Method 

Calculate the crosspoint with a line.

public bool Cross(
   LineType aLine,
   out double Lam,
   out xyz pt
);

Parameters

aLine
A line, who intersect the plane
Lam
Is a parameter, which determs the crosspoint
pt
Is the crosspoint

Return Value

returns true, if there is a crosspoint.

Example

//the following snippet shows the meaning of lam
Plane p = new Plane( new xyz(0, 0, 0), new xyz(1, 5, 5));
LineType l = new LineType( new xyz (3,-1,3), new xyz(2, 1, 5));
if (p.Cross(l, out Lam, out pt))
    {
    // you can get p also by the following
    pt = l.P + l.Direction*lam;
    }

See Also

Plane Class | Minais.Drawing3d.Math Namespace