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

Method projectRadius

Engine/source/gui/3d/guiTSControl.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259//-----------------------------------------------------------------------------
260
261F32 GuiTSCtrl::projectRadius( F32 dist, F32 radius ) const
262{
263 // Fixup any negative or zero distance so we
264 // don't get a divide by zero.
265 dist = dist > 0.0f ? dist : 0.001f;
266 return ( radius / dist ) * mSaveWorldToScreenScale.y;
267}
268
269//-----------------------------------------------------------------------------
270

Callers 4

setDetailFromDistanceMethod · 0.45
cullCellsMethod · 0.45
updatePriorityMethod · 0.45
_testVisibilityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected