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

Method distance

jni/venus/vec2.h:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 friend T distance(const vec2<T>& pt1, const vec2<T>& pt2)
157 {
158 vec2<T> v = pt2 - pt1;
159 return v.length();
160 }
161
162 friend T dot(const vec2<T>& v1, const vec2<T>& v2)
163 {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected