Beispiel #1
0
        static public bool IsIntersectingLine(this Plane2 item, Ray2 ray, out Vector2 point)
        {
            float distance;
            bool  did_intersect = item.IsIntersectingLine(ray, out distance);

            point = ray.GetPointAlong(distance);
            return(did_intersect);
        }
Beispiel #2
0
        static public bool IsIntersecting(this Plane2 item, Ray2 ray, out float distance)
        {
            if (item.IsIntersectingLine(ray, out distance) && distance >= 0.0f)
            {
                return(true);
            }

            return(false);
        }