Пример #1
0
 public static float Distance(GVector3 v1, GVector3 v2)
 {
     return(GMath.Sqrt((v1.x - v2.x) * (v1.x - v2.x) + (v1.y - v2.y) * (v1.y - v2.y) + (v1.z - v2.z) * (v1.z - v2.z)));
 }
Пример #2
0
 public static float Dot(GVector3 v1, GVector3 v2)
 {
     return(v1.x * v2.x + v1.y * v2.y + v1.z * v2.z);
 }
Пример #3
0
 public GVector3(GVector3 origin)
 {
     x = origin.x; y = origin.y; z = origin.z;
 }