SharpMath.Plane.Intersect C# (CSharp) Метод

Intersect() публичный Метод

public Intersect ( Plane _p0, Plane _p1, float3 &_intersection ) : bool
_p0 Plane
_p1 Plane
_intersection float3
Результат 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 );
        }

Same methods

Plane::Intersect ( Plane _p, Ray _ray ) : bool
Plane::Intersect ( Ray _Ray, float3 &_intersection ) : bool

Usage Example

Пример #1
0
        // 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));
        }
All Usage Examples Of SharpMath.Plane::Intersect