예제 #1
0
 public float dotProduct(Vector v)
 {
     return u * v.u + this.v * v.v;
 }
예제 #2
0
 public float crossProduct(Vector v)
 {
     return u * v.v - this.v * v.u;
 }