public Orbit(float x, float y, float radius, Orbit parent)
        {
            X      = x;
            Y      = y;
            Radius = radius;
            Parent = parent;
            angle  = (float)(-Math.PI / 2f);
            int actualLevel = getActualLevel();

            speed = ConvertionHelper.DegreesToRadians((float)Math.Pow(k, actualLevel - 1) / 10f);
        }
Beispiel #2
0
 protected float radians(float degrees)
 {
     return(ConvertionHelper.DegreesToRadians(degrees));
 }