Ejemplo n.º 1
0
        private void PopPosition()
        {
            SavePosition newPosition = positions.Pop();

            lastPointX = newPosition.saveX;
            lastPointY = newPosition.saveY;
            lastVector = newPosition.saveVector;
        }
Ejemplo n.º 2
0
        private void PushPosition()
        {
            SavePosition currentPostion = new SavePosition(lastPointX, lastPointY, lastVector);

            positions.Push(currentPostion);
        }