| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected