MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / IsDifferentEnough

Function IsDifferentEnough

Source/Objects/object.cpp:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258bool IsDifferentEnough(const vec3 &a, const vec3 &b) {
259 bool same = true;
260 for (int i = 0; i < 3; ++i) {
261 if (fabs(a[i] - b[i]) > 0.0001) {
262 same = false;
263 }
264 }
265 return !same;
266}
267
268bool IsDifferentEnough(const quaternion &a, const quaternion &b) {
269 bool same = true;

Callers 3

GetDescMethod · 0.85
SetRotationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected