MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / dist

Method dist

utils/cpp_utils/include/vec3.h:197–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 static T dist(const vec3 &v0, const vec3 &v1) {
198 return sqrt((v0.array[0] - v1.array[0]) * (v0.array[0] - v1.array[0]) +
199 (v0.array[1] - v1.array[1]) * (v0.array[1] - v1.array[1]) +
200 (v0.array[2] - v1.array[2]) * (v0.array[2] - v1.array[2]));
201 }
202
203 static vec3<T> randomUniform(T min, T max) {
204

Callers

nothing calls this directly

Calls 1

sqrtFunction · 0.85

Tested by

no test coverage detected