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