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

Function Normalize

source/external/tinyobj/tiny_obj_loader.h:1482–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480}
1481
1482inline TinyObjPoint Normalize(TinyObjPoint e) {
1483 real_t inv_length = real_t(1) / GetLength(e);
1484 return TinyObjPoint(e.x * inv_length, e.y * inv_length, e.z * inv_length);
1485}
1486
1487inline TinyObjPoint WorldToLocal(const TinyObjPoint &a, const TinyObjPoint &u,
1488 const TinyObjPoint &v, const TinyObjPoint &w) {

Callers 1

exportGroupsToShapeFunction · 0.85

Calls 2

GetLengthFunction · 0.85
TinyObjPointClass · 0.85

Tested by

no test coverage detected