Ctrl_Space.Graphics.Camera.GetTransform C# (CSharp) Méthode

GetTransform() public méthode

public GetTransform ( ) : Matrix
Résultat Microsoft.Xna.Framework.Matrix
        public Matrix GetTransform()
        {
            Matrix result;
            result = Matrix.CreateTranslation(-_followedObject.Position.X, -_followedObject.Position.Y, 0f);
            result *= Matrix.CreateRotationZ(-_followedObject.Rotation);
            result *= Matrix.CreateTranslation(Game.ResolutionX / 2, Game.ResolutionY / 2, 0f);
            return result;
        }