MCPcopy Create free account
hub / github.com/admtrv/objcurses / cross

Method cross

utils/mathematics.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Vec3 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
78float Vec3::cosine_similarity(const Vec3 &a, const Vec3 &b)
79{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected