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

Method projectRadius

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

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected