MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / RadiusFromScale

Function RadiusFromScale

Source/Objects/dynamiclightobject.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38extern bool g_debug_runtime_disable_dynamic_light_object_draw;
39
40float RadiusFromScale(vec3 scale) {
41 return std::min(fabs(scale.x()), std::min(fabs(scale.y()), fabs(scale.z())));
42}
43
44void DynamicLightObject::Draw() {
45 if (g_debug_runtime_disable_dynamic_light_object_draw) {

Callers 4

DrawMethod · 0.85
InitializeMethod · 0.85
MovedMethod · 0.85
SetEnabledMethod · 0.85

Calls 4

minFunction · 0.50
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected