Esempio 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;
 }
Esempio 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)));
 }
Esempio n. 3
0
 public EnginePoint(EnginePoint ep)
 {
     this.X = ep.X;
     this.Y = ep.Y;
 }