Esempio n. 1
0
        static public bool IsOutside(this Plane2 item, Vector2 point, float tolerance = 0.0f)
        {
            if (item.GetSignedDistanceToPoint(point) > tolerance)
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
 static public float GetAbsoluteDistanceToPoint(this Plane2 item, Vector2 point)
 {
     return(item.GetSignedDistanceToPoint(point).GetAbs());
 }
Esempio n. 3
0
 static public Vector2 ProjectPoint(this Plane2 item, Vector2 point)
 {
     return(point - item.normal * item.GetSignedDistanceToPoint(point));
 }