/// <summary>
 ///
 /// </summary>
 /// <param name="to">starting point of the vector</param>
 /// <param name="from">ending point of the vector</param>
 public Vector2D(Point2D to, Point2D from)
 {
     x = to.X - from.X;
     y = to.Y - from.Y;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Build a new SimpleObject, by it's type and it's position in the room.
 /// </summary>
 /// <param name="position">the position where the SimpleObject will be placed.</param>
 public AbstractSimpleObject(Point2D position)
 {
     this.position = position;
 }