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); }
protected float radians(float degrees) { return(ConvertionHelper.DegreesToRadians(degrees)); }