We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1eca8d0 + 06268c3 commit 0a062ccCopy full SHA for 0a062cc
source/core/math/vector.h
@@ -314,8 +314,8 @@ class GenericVector2d
314
}
315
inline bool IsNearNull(T epsilon) const
316
{
317
- return (abs(vect[X]) < epsilon) &&
318
- (abs(vect[Y]) < epsilon);
+ return (fabs(vect[X]) < epsilon) &&
+ (fabs(vect[Y]) < epsilon);
319
320
inline GenericVector2d normalized() const
321
@@ -540,9 +540,9 @@ class GenericVector3d
540
541
542
543
544
- (abs(vect[Y]) < epsilon) &&
545
- (abs(vect[Z]) < epsilon);
+ (fabs(vect[Y]) < epsilon) &&
+ (fabs(vect[Z]) < epsilon);
546
547
inline GenericVector3d normalized() const
548
0 commit comments