예제 #1
0
 public float dot(vec3 a)
 {
     return(a.x * x + a.y * y + a.z * z);
 }
예제 #2
0
 public static float dot(vec3 a, vec3 b)
 {
     return(a.x * b.x + a.y * b.y + a.z * b.z);
 }
예제 #3
0
 public vec3(vec3 v)
 {
     e[0] = v.e[0];
     e[1] = v.e[1];
     e[2] = v.e[2];
 }