Protogame.DefaultTransform.Assign C# (CSharp) Méthode

Assign() public méthode

public Assign ( ITransform from ) : void
from ITransform
Résultat void
        public void Assign(ITransform from)
        {
            if (from.IsSRTMatrix)
            {
                SetFromSRTMatrix(
                    from.LocalPosition,
                    from.LocalRotation,
                    from.LocalScale);
                Modified?.Invoke(this, new EventArgs());
            }
            else
            {
                SetFromCustomMatrix(
                    from.LocalMatrix);
                Modified?.Invoke(this, new EventArgs());
            }
        }