Skip to content

Commit

Permalink
Merge pull request #56 from wfpokorny/master
Browse files Browse the repository at this point in the history
Update vector.h
  • Loading branch information
c-lipka committed Mar 12, 2016
2 parents 1eca8d0 + 06268c3 commit 0a062cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/core/math/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ class GenericVector2d
}
inline bool IsNearNull(T epsilon) const
{
return (abs(vect[X]) < epsilon) &&
(abs(vect[Y]) < epsilon);
return (fabs(vect[X]) < epsilon) &&
(fabs(vect[Y]) < epsilon);
}
inline GenericVector2d normalized() const
{
Expand Down Expand Up @@ -540,9 +540,9 @@ class GenericVector3d
}
inline bool IsNearNull(T epsilon) const
{
return (abs(vect[X]) < epsilon) &&
(abs(vect[Y]) < epsilon) &&
(abs(vect[Z]) < epsilon);
return (fabs(vect[X]) < epsilon) &&
(fabs(vect[Y]) < epsilon) &&
(fabs(vect[Z]) < epsilon);
}
inline GenericVector3d normalized() const
{
Expand Down

0 comments on commit 0a062cc

Please sign in to comment.