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

Function TransformedGeometryExtensionLocalParams

ogsr_engine/xrGame/Geometry.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void TransformedGeometryExtensionLocalParams(dGeomID geom_transform, const dReal* axis, float center_prg, dReal* local_axis, dReal& local_center_prg)
59{
60 R_ASSERT2(dGeomGetClass(geom_transform) == dGeomTransformClass, "is not a geom transform");
61 const dReal* rot = dGeomGetRotation(geom_transform);
62 const dReal* pos = dGeomGetPosition(geom_transform);
63 dVector3 local_pos;
64
65 dMULTIPLY1_331(local_axis, rot, axis);
66 dMULTIPLY1_331(local_pos, rot, pos);
67 local_center_prg = center_prg - dDOT(local_pos, local_axis);
68}
69
70CODEGeom::CODEGeom()
71{

Callers

nothing calls this directly

Calls 3

dGeomGetClassFunction · 0.85
dGeomGetRotationFunction · 0.85
dGeomGetPositionFunction · 0.85

Tested by

no test coverage detected