MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / getInverse

Method getInverse

utils/cuda_utils/include/cuda_SimpleMatrixUtil.h:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 inline __device__ __host__ float2x2 getInverse()
58 {
59 float2x2 res;
60 res.m11 = m22; res.m12 = -m12;
61 res.m21 = -m21; res.m22 = m11;
62
63 return res*(1.0f/det());
64 }
65
66 inline __device__ __host__ float det()
67 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected