コード例 #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()));
 }