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))); }
public static float Dot(GVector3 v1, GVector3 v2) { return(v1.x * v2.x + v1.y * v2.y + v1.z * v2.z); }
public GVector3(GVector3 origin) { x = origin.x; y = origin.y; z = origin.z; }