Пример #1
0
 static public bool IsIntersectingLine(this Plane2 item, Ray2 ray, out float distance)
 {
     return(ray.IsIntersectingLine(item.GetOrigin(), item.normal, out distance));
 }
Пример #2
0
 static public float GetSignedDistanceToPoint(this Plane2 item, Vector2 point)
 {
     return(item.normal.GetDot(point - item.GetOrigin()));
 }
Пример #3
0
 static public Plane2 GetFlipped(this Plane2 item)
 {
     return(Plane2Extensions.CreateNormalAndPoint(-item.normal, item.GetOrigin()));
 }