Beispiel #1
0
 public bool Inside(Vector3 p, ref float distance)
 {
     if (IsNotFacePoints(p))
     {
         float dist = PlaneUtils.PointDistanceToPlane(mPlane, p);
         if (dist < 0)
         {
             return(false);
         }
         distance = dist;
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 private bool IsNotFacePoints(Vector3 p)
 {
     return(!PlaneUtils.IsPointOnPlane(mPlane.mNormal, mPlane.mD, p));
 }