summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfk <dfk@umn.edu>2021-03-17 10:36:31 -0500
committerGitHub Enterprise <noreply-github@umn.edu>2021-03-17 10:36:31 -0500
commit4808cff234222da99a4059d338cf655e4275ef14 (patch)
tree46b152806bb8199fb499eacd3724d9f60beefbd8
parentAdded a4 worksheet and handout (diff)
downloadcsci4611-4808cff234222da99a4059d338cf655e4275ef14.tar
csci4611-4808cff234222da99a4059d338cf655e4275ef14.tar.gz
csci4611-4808cff234222da99a4059d338cf655e4275ef14.tar.bz2
csci4611-4808cff234222da99a4059d338cf655e4275ef14.tar.lz
csci4611-4808cff234222da99a4059d338cf655e4275ef14.tar.xz
csci4611-4808cff234222da99a4059d338cf655e4275ef14.tar.zst
csci4611-4808cff234222da99a4059d338cf655e4275ef14.zip
Update vector2.cc
-rw-r--r--dev/MinGfx/src/vector2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/MinGfx/src/vector2.cc b/dev/MinGfx/src/vector2.cc
index cada189..92308f7 100644
--- a/dev/MinGfx/src/vector2.cc
+++ b/dev/MinGfx/src/vector2.cc
@@ -50,7 +50,7 @@ bool Vector2::operator==(const Vector2& other) const {
}
bool Vector2::operator!=(const Vector2& other) const {
- return (fabs(other[0] - v[0]) >= MINGFX_MATH_EPSILON &&
+ return (fabs(other[0] - v[0]) >= MINGFX_MATH_EPSILON ||
fabs(other[1] - v[1]) >= MINGFX_MATH_EPSILON);
}