public Intersect ( |
||
_p0 | ||
_p1 | ||
_intersection | ||
return | bool |
public bool Intersect( Plane _p0, Plane _p1, ref float3 _intersection )
{
// Compute the intersection of 2 planes first, yielding a ray
Ray Hit = new Ray();
if ( !_p0.Intersect( _p1, Hit ) )
return false;
// Then compute the intersection of this ray with our plane
return Intersect( Hit, ref _intersection );
}
// Intersection between 3 planes public bool Intersect(Plane _p0, Plane _p1, ref float3 _intersection) { // Compute the intersection of 2 planes first, yielding a ray Ray Hit = new Ray(); if (!_p0.Intersect(_p1, Hit)) { return(false); } // Then compute the intersection of this ray with our plane return(Intersect(Hit, ref _intersection)); }