MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / angle

Method angle

jni/venus/vec3.h:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 }
219
220 friend T angle(const vec3<T>& v1, const vec3<T>& v2)
221 {
222 T numerator = dot(v1, v2);
223 T denominator = v1.length() * v2.length();
224// assert(!isZero<T>(denominator));
225 return std::acos(numerator/denominator);
226 }
227
228 friend T distance(const vec3<T>& pt1, const vec3<T>& pt2)
229 {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected