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