MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / computeFinalTx

Function computeFinalTx

ogsr_engine/xrGame/Geometry.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6// global
7
8static void computeFinalTx(dGeomID geom_transform, dReal* final_pos, dReal* final_R)
9{
10 R_ASSERT2(dGeomGetClass(geom_transform) == dGeomTransformClass, "is not a geom transform");
11 dGeomID obj = dGeomTransformGetGeom(geom_transform);
12 const dReal* R = dGeomGetRotation(geom_transform);
13 const dReal* pos = dGeomGetPosition(geom_transform);
14 dMULTIPLY0_331(final_pos, R, dGeomGetPosition(obj));
15 final_pos[0] += pos[0];
16 final_pos[1] += pos[1];
17 final_pos[2] += pos[2];
18 dMULTIPLY0_333(final_R, R, dGeomGetRotation(obj));
19}
20
21void GetBoxExtensions(dGeomID box, const dReal* axis, const dReal* pos, const dReal* rot, float center_prg, dReal* lo_ext, dReal* hi_ext)
22{

Callers 2

computeAABBMethod · 0.85
get_final_txMethod · 0.85

Calls 4

dGeomGetClassFunction · 0.85
dGeomTransformGetGeomFunction · 0.85
dGeomGetRotationFunction · 0.85
dGeomGetPositionFunction · 0.85

Tested by

no test coverage detected