BulletMan.MainScreen.slOrientation_ValueChangeEvent C# (CSharp) Метод

slOrientation_ValueChangeEvent() приватный Метод

Move the canyon
private slOrientation_ValueChangeEvent ( Component source ) : void
source Component
Результат void
        void slOrientation_ValueChangeEvent(Component source)
        {
            s_Canyon.Rotation = MathHelper.ToRadians(slOrientation.Value);

            //Vector2 aux = s_Canyon.Position;
            //float radians = MathHelper.ToRadians(slOrientation.Value);
            //Vector2 offset = new Vector2((float)Math.Cos(radians) * s_Canyon.Size.X,
            //                             (float)Math.Sin(radians) * s_Canyon.Size.X);
            //Vector2 final = aux - offset;
            //rectangle.Position = final;
        }