public AffineTransform3 Invert() { AffineTransform3 result; Matrix3.Invert(ref Transform, out result.Transform); Vector3.Transform(ref Translation, ref result.Transform, out result.Translation); result.Translation = -result.Translation; return(result); }
public static void Invert(ref AffineTransform3 transform, out AffineTransform3 result) { Matrix3.Invert(ref transform.Transform, out result.Transform); Vector3.Transform(ref transform.Translation, ref result.Transform, out result.Translation); result.Translation = -result.Translation; }