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