MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / LongestAxis

Function LongestAxis

core/aabbtree.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 };
94
95 inline uint32_t LongestAxis(const Vector3& v)
96 {
97 if (v.x > v.y && v.x > v.z)
98 return 0;
99 else
100 return (v.y > v.z) ? 1 : 2;
101 }
102
103} // anonymous namespace
104

Callers 1

PartitionMedianMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected