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; }
public double GetDistance(EnginePoint ep2) { return(Math.Sqrt(Math.Pow(this.X - ep2.X, 2) + Math.Pow(this.Y - ep2.Y, 2))); }
public EnginePoint(EnginePoint ep) { this.X = ep.X; this.Y = ep.Y; }