Matrix4x4 GetCameraToWorldMatrix() { Matrix4x4 m = GetWorldToCameraMatrix(); m.Invert_Full(); return(m); }
Matrix4x4 GetWorldToLocalMatrix() { Matrix4x4 m = GetLocalToWorldMatrix(); m.Invert_Full(); return(m); }
void SetWorldRotationAndScaleWithoutNotification(Matrix4x4 scale) { m_LocalScale = Vector3.one; Matrix4x4 inverseRS = GetWorldRotationAndScale(); inverseRS.Invert_Full(); inverseRS = inverseRS * scale; m_LocalScale.x = inverseRS[0, 0]; m_LocalScale.y = inverseRS[1, 1]; m_LocalScale.z = inverseRS[2, 2]; RecalculateTransformType(); hackDirty = true; }
internal static bool Invert_Full(Matrix4x4 inMatrix, out Matrix4x4 dest) { dest = inMatrix; return(dest.Invert_Full()); }
// Invert a matrix and return the success code. internal static bool Invert(Matrix4x4 inMatrix, out Matrix4x4 dest) { return(Matrix4x4.Invert_Full(inMatrix, out dest)); }
//*undocumented* --- have a property now static Matrix4x4 Inverse(Matrix4x4 m) { Matrix4x4 output = m; output.Invert_Full(); return(output); }
void GetClipToWorldMatrix(out Matrix4x4 outMatrix) { Matrix4x4.Invert_Full(GetWorldToClipMatrix(), out outMatrix); }