Example #1
0
        static public bool IsIntersecting(this Face item, Ray2 ray, out float distance, out Vector2 point)
        {
            if (item.IsIntersectingLine(ray, out distance, out point) && distance >= 0.0f)
            {
                return(true);
            }

            distance = float.MaxValue;
            return(false);
        }
Example #2
0
        static public bool IsIntersectingLine(this Face item, Ray2 ray, out Vector2 point)
        {
            float distance;

            return(item.IsIntersectingLine(ray, out distance, out point));
        }