MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / transformSimple

Function transformSimple

src/ImathTest/testBoxAlgo.cpp:784–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784Box3f
785transformSimple (const Box3f& b, const M44f& M)
786{
787 Box3f b1;
788
789 for (int i = 0; i < 8; ++i)
790 {
791 V3f p;
792
793 for (int j = 0; j < 3; ++j)
794 p[j] = ((i >> j) & 1) ? b.max[j] : b.min[j];
795
796 b1.extendBy (p * M);
797 }
798
799 return b1;
800}
801
802void
803boxMatrixTransform ()

Callers 1

boxMatrixTransformFunction · 0.85

Calls 1

extendByMethod · 0.80

Tested by

no test coverage detected