| 67 | } |
| 68 | |
| 69 | Vec3 Vec3::cross(const Vec3 &a, const Vec3 &b) |
| 70 | { |
| 71 | return { |
| 72 | a.y * b.z - a.z * b.y, |
| 73 | a.z * b.x - a.x * b.z, |
| 74 | a.x * b.y - a.y * b.x |
| 75 | }; |
| 76 | } |
| 77 | |
| 78 | float Vec3::cosine_similarity(const Vec3 &a, const Vec3 &b) |
| 79 | { |
nothing calls this directly
no outgoing calls
no test coverage detected