MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / GetLength

Function GetLength

source/external/tinyobj/tiny_obj_loader.h:1478–1480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1476}
1477
1478inline real_t GetLength(TinyObjPoint &e) {
1479 return std::sqrt(e.x * e.x + e.y * e.y + e.z * e.z);
1480}
1481
1482inline TinyObjPoint Normalize(TinyObjPoint e) {
1483 real_t inv_length = real_t(1) / GetLength(e);

Callers 2

NormalizeFunction · 0.85
exportGroupsToShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected