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

Method angle

jni/venus/vec2.h:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 friend T angle(const vec2<T>& v1, const vec2<T>& v2)
149 {
150 T numerator = dot(v1, v2);
151 T denominator = v1.length() * v2.length();
152// assert(!isZero<T>(denominator));
153 return std::acos(numerator/denominator);
154 }
155
156 friend T distance(const vec2<T>& pt1, const vec2<T>& pt2)
157 {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected