Beispiel #1
0
 public DBVector(IntVector vector)
 {
     this.x = vector.x;
     this.y = vector.y;
 }
Beispiel #2
0
 public Vector2 Float(IntVector point)
 {
     return(new Vector2(point.x * invertScale, point.y * invertScale));
 }
Beispiel #3
0
 public long ScalarMultiply(IntVector vector)
 {
     return(this.x * vector.x + vector.y * this.y);
 }
Beispiel #4
0
 public long CrossProduct(IntVector vector)
 {
     return(this.x * vector.y - this.y * vector.x);
 }
Beispiel #5
0
 private bool Equals(IntVector other)
 {
     return(x == other.x && y == other.y);
 }