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