MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromXf

Function fromXf

source/MRCuda/MRCudaMath.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19Matrix4 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

Callers 3

calcFromGridByPartsMethod · 0.85
findProjectionsMethod · 0.85

Calls 1

fromVecFunction · 0.85

Tested by

no test coverage detected