Beispiel #1
0
 /// <summary>
 /// Gives the point at the position when going from this one in direction of a given vector and the given distance.
 /// </summary>
 /// <param name="v"></param>
 /// <param name="distance"></param>
 /// <returns></returns>
 public Point Go(Vector v, double distance)
 {
     Vector vDiff = v.Scale(distance);
     return Go(vDiff);
 }
Beispiel #2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="copyFrom"></param>
 public Vector(Vector copyFrom)
 {
     this.X = copyFrom.X;
     this.Y = copyFrom.Y;
 }
Beispiel #3
0
 /// <summary>
 /// Gives the point at the position when going from this one in direction of a given vector.
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public Point Go(Vector v)
 {
     return new Point(this.X + v.X, this.Y + v.Y);
 }