예제 #1
0
 public Vector4(Mathd.Vector4 vec4)
 {
     w_ = vec4.w;
     x_ = vec4.x;
     y_ = vec4.y;
     z_ = vec4.z;
 }
예제 #2
0
 // Dot Product
 // The angle between two vectors
 // If the same vector is used both sides = magnitude of the vector, squared
 static public float DotProduct(Mathd.Vector4 lhs, Mathd.Vector4 rhs)
 {
     return((lhs.w * rhs.w) + (lhs.x * rhs.x) + (lhs.y * rhs.y) + (lhs.z * rhs.z));
 }