Beispiel #1
0
 // Dot Product (Inner Product)
 public static long DotProduct(long2 A, long2 B)
 {
     return(A.x * B.x + A.y * B.y);
 }
Beispiel #2
0
 // Cross Product returns last component of (Ax,Ay,0) x (Bx,By,0)
 public static long CrossProduct(long2 A, long2 B)
 {
     return(A.x * B.y - A.y * B.x);
 }
Beispiel #3
0
 public long2(long2 A)
 {
     this.x = A.x;
     this.y = A.y;
 }