Example #1
0
 public static bool IsPointOutOfSphere(float px, float py, float pz, float radius, float cx, float cy, float cz)
 {
     return(!PointInSphere.IsPointInSphere(px, py, pz, radius, cx, cy, cz));
 }
Example #2
0
        public static bool IsPointInSphere(float px, float py, float pz, float radius, float cx, float cy, float cz)
        {
            double distSqd = PointInSphere.GetPointDistanceSqd(px, py, pz, cx, cy, cz);

            return(distSqd < Math.Pow(radius, 2));
        }
Example #3
0
 public static bool IsPointOutOfSphere(Vector point, float radius, Vector sphereCenter)
 {
     return(!PointInSphere.IsPointInSphere(point, radius, sphereCenter));
 }