Exemplo n.º 1
0
        public Car Apply(Adjustment adjustment)
        {
            var inertia   = _inertia.Add(Inertia.DirectionFor(adjustment));
            var positionX = Position.x + inertia._x;
            var positionY = Position.y + inertia._y;
            var position  = new Position(positionX, positionY);

            return(new Car(inertia, position));
        }