Exemplo n.º 1
0
 public EngineRectangle(EnginePoint location, EngineSize size, Directions direction = Directions.Wrong, bool isBarrier = false)
 {
     this.Location  = location;
     this.Size      = size;
     this.IsBarrier = isBarrier;
     this.Direction = direction;
 }
Exemplo n.º 2
0
 public double GetDistance(EnginePoint ep2)
 {
     return(Math.Sqrt(Math.Pow(this.X - ep2.X, 2) + Math.Pow(this.Y - ep2.Y, 2)));
 }
Exemplo n.º 3
0
 public EnginePoint(EnginePoint ep)
 {
     this.X = ep.X;
     this.Y = ep.Y;
 }