| 17 | } |
| 18 | |
| 19 | Matrix4 fromXf( const MR::AffineXf3f& xf ) |
| 20 | { |
| 21 | if ( xf == AffineXf3f{} ) |
| 22 | return Matrix4 { .isIdentity = true }; |
| 23 | |
| 24 | return { |
| 25 | .x = fromVec( xf.A.x ), |
| 26 | .y = fromVec( xf.A.y ), |
| 27 | .z = fromVec( xf.A.z ), |
| 28 | .b = fromVec( xf.b ), |
| 29 | .isIdentity = false, |
| 30 | }; |
| 31 | } |
| 32 | |
| 33 | } // namespace MR::Cuda |
no test coverage detected