MCPcopy Create free account
hub / github.com/defold/defold / OrthoInverse

Function OrthoInverse

engine/script/src/script_vmath.cpp:1784–1790  ·  view source on GitHub ↗

calculates the inverse of an ortho-normal matrix. * The resulting matrix is the inverse of the supplied matrix. * The supplied matrix has to be an ortho-normal matrix, e.g. * describe a regular object transformation. * * [icon:attention] For matrices that are not ortho-normal * use the general inverse `vmath.inv()` instead. * * @name vmath.ortho_inv * @

Source from the content-addressed store, hash-verified

1782 * ```
1783 */
1784 static int OrthoInverse(lua_State* L)
1785 {
1786 const Matrix4* m = CheckMatrix4(L, 1);
1787 Matrix4 mi = dmVMath::OrthoInverse(*m);
1788 PushMatrix4(L, mi);
1789 return 1;
1790 }
1791
1792 /*# calculates the dot-product of two vectors
1793 *

Callers

nothing calls this directly

Calls 2

CheckMatrix4Function · 0.85
PushMatrix4Function · 0.85

Tested by

no test coverage detected