aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfk <dfk@umn.edu>2021-03-17 10:37:08 -0500
committerGitHub Enterprise <noreply-github@umn.edu>2021-03-17 10:37:08 -0500
commitb9a2cbb5a62215a01d12a00b82f0fa77b3850632 (patch)
treea5f61e451088b72feb59848d34259dd0e5db6a22
parentUpdate vector2.cc (diff)
downloadcsci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar.gz
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar.bz2
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar.lz
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar.xz
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.tar.zst
csci4611-b9a2cbb5a62215a01d12a00b82f0fa77b3850632.zip
Update vector3.cc
-rw-r--r--dev/MinGfx/src/vector3.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/MinGfx/src/vector3.cc b/dev/MinGfx/src/vector3.cc
index 19262c2..7848f48 100644
--- a/dev/MinGfx/src/vector3.cc
+++ b/dev/MinGfx/src/vector3.cc
@@ -57,8 +57,8 @@ bool Vector3::operator==(const Vector3& other) const {
}
bool Vector3::operator!=(const Vector3& other) const {
- return (fabs(other[0] - v[0]) >= MINGFX_MATH_EPSILON &&
- fabs(other[1] - v[1]) >= MINGFX_MATH_EPSILON &&
+ return (fabs(other[0] - v[0]) >= MINGFX_MATH_EPSILON ||
+ fabs(other[1] - v[1]) >= MINGFX_MATH_EPSILON ||
fabs(other[2] - v[2]) >= MINGFX_MATH_EPSILON);
}