| 130 | static inline float length(Vec3 v) { return std::sqrt(dot(v, v)); } |
| 131 | static inline Vec3 normalize(Vec3 v) { float len = length(v); return Vec3{ v.x / len, v.y / len, v.z / len }; } |
| 132 | static inline Vec3 cross(Vec3 lhs, Vec3 rhs) { return Vec3{ lhs.y * rhs.z - lhs.z * rhs.y, lhs.z * rhs.x - lhs.x * rhs.z, lhs.x * rhs.y - lhs.y * rhs.x }; } |
| 133 | |
| 134 | |
| 135 | // |
no outgoing calls
no test coverage detected