MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setCenter

Method setCenter

Engine/source/math/mBox.h:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274inline void Box3F::setCenter(const Point3F& center)
275{
276 F32 halflenx = len_x() * 0.5f;
277 F32 halfleny = len_y() * 0.5f;
278 F32 halflenz = len_z() * 0.5f;
279
280 minExtents.set(center.x-halflenx, center.y-halfleny, center.z-halflenz);
281 maxExtents.set(center.x+halflenx, center.y+halfleny, center.z+halflenz);
282}
283
284inline bool Box3F::isContained(const Point3F& in_rContained) const
285{

Callers 10

scopeSceneMethod · 0.80
processTickMethod · 0.80
updateBoundsMethod · 0.80
findCoverMethod · 0.80
updateZoningMethod · 0.80
updateProbeParamsMethod · 0.80
_onRenderVizMethod · 0.80
prepRenderImageMethod · 0.80
DefineEngineMethodFunction · 0.80
softSnapSelectionMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected