Esempio n. 1
0
 public void assign(VectorD2d vect)
 {
     this._x = vect.x; this._y = vect.y;
 }
Esempio n. 2
0
 public double dot(VectorD2d rhs)
 {
     return(this.x * rhs.x + this.y * rhs.y);
 }
Esempio n. 3
0
 public double cross(VectorD2d rhs)
 {
     return(this.x * rhs.y - this.y * rhs.x);
 }
Esempio n. 4
0
 public VectorD2d(VectorD2d v) : this(v.x, v.y)
 {
 }