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());
}
}