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

Method angle

jni/venus/vec4.h:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 friend T angle(const vec4<T>& v1, const vec4<T>& v2)
112 {
113 T numerator = dot(v1, v2);
114 T denominator = v1.length() * v2.length();
115// assert(!isZero<T>(denominator));
116 return std::acos(numerator/denominator);
117 }
118
119 friend T distance(const vec4<T>& pt1, const vec4<T>& pt2)
120 {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected