Beispiel #1
0
        public override void changePosition()
        {
            float length        = vector.Length * factor;
            int   stateLength   = 50 + (int)(length / 12);
            int   controlLength = 50 + (int)((9 * radius + length) / 12);

            if (duplex)
            {
                state   = new Circle(vector.getLocation(stateLength, true), radius);
                control = new Circle(vector.getLocation(controlLength, true), radius);
            }
            else
            {
                state   = new Circle(vector.getLocation(stateLength), radius);
                control = new Circle(vector.getLocation(controlLength), radius);
            }
        }