コード例 #1
0
ファイル: 3DQuickHull.cs プロジェクト: ByteKay/Nullspace
 public bool Inside(Vector3 p, ref float distance)
 {
     if (IsNotFacePoints(p))
     {
         float dist = GeoPlaneUtils.PointDistanceToPlane(mPlane, p);
         if (dist < 0)
         {
             return(false);
         }
         distance = dist;
         return(true);
     }
     return(false);
 }