예제 #1
0
 public int Dist(Vec3 v)
 {
     int x = X - v.X;
     int y = Y - v.Y;
     int z = Z - v.Z;
     return (x * x) + (y * y) + (z * z);
 }
예제 #2
0
 public static int Dist(Vec3 v1, Vec3 v2)
 {
     return v1.Dist(v2);
 }