public EndRoadLaneEdge( Factories.Factories factories, MovablePoint startPoint, MovablePoint endPoint, RoadLaneBlock parent ) : base( factories, startPoint, endPoint, Styles.NormalStyle, parent ) { this._parrent = parent; this._notMovableMouseHandler = factories.MouseHandlerFactory.CreateEmpty(); this.Connector = new EndRoadLaneEdgeConnector( this ); }
static void Main(string[] args) { MovablePoint point1 = new MovablePoint(2, 35, 4, 6); Console.WriteLine("We have speed: " + point1.GetSpeed()); Console.WriteLine("X Y before move:" + point1.GetXY()[0] + " and " + point1.GetXY()[1]); point1.Move(); Console.WriteLine("Now it has location: " + point1.GetXY()[0] + " and " + point1.GetXY()[1]); }
static void Main(string[] args) { Console.WriteLine("Point"); Point point = new Point(5.6f, 7.9f); Console.WriteLine(point); Console.WriteLine("---------------\n"); Console.WriteLine("MovablePoint"); MovablePoint movablePoint = new MovablePoint(8.2f, 20.6f); Console.WriteLine(movablePoint.Move()); Console.WriteLine(movablePoint.ToString()); }
public MovableRectangle(MovablePoint TopLeft, MovablePoint BottomRight) { topLeft = TopLeft; bottomRight = BottomRight; }
public MovableCircle(int Radius, MovablePoint Center) { radius = Radius; center = Center; }