// Dot Product (Inner Product) public static long DotProduct(long2 A, long2 B) { return(A.x * B.x + A.y * B.y); }
// 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); }
public long2(long2 A) { this.x = A.x; this.y = A.y; }