|
@@ -342,8 +342,8 @@ bool Vector3::operator!=(const Vector3 &p_v) const {
|
|
|
|
|
|
bool Vector3::operator<(const Vector3 &p_v) const {
|
|
|
|
|
|
- if (Math::is_equal_approx(x, p_v.x)) {
|
|
|
- if (Math::is_equal_approx(y, p_v.y))
|
|
|
+ if (x == p_v.x) {
|
|
|
+ if (y == p_v.y)
|
|
|
return z < p_v.z;
|
|
|
else
|
|
|
return y < p_v.y;
|
|
@@ -354,8 +354,8 @@ bool Vector3::operator<(const Vector3 &p_v) const {
|
|
|
|
|
|
bool Vector3::operator>(const Vector3 &p_v) const {
|
|
|
|
|
|
- if (Math::is_equal_approx(x, p_v.x)) {
|
|
|
- if (Math::is_equal_approx(y, p_v.y))
|
|
|
+ if (x == p_v.x) {
|
|
|
+ if (y == p_v.y)
|
|
|
return z > p_v.z;
|
|
|
else
|
|
|
return y > p_v.y;
|
|
@@ -366,8 +366,8 @@ bool Vector3::operator>(const Vector3 &p_v) const {
|
|
|
|
|
|
bool Vector3::operator<=(const Vector3 &p_v) const {
|
|
|
|
|
|
- if (Math::is_equal_approx(x, p_v.x)) {
|
|
|
- if (Math::is_equal_approx(y, p_v.y))
|
|
|
+ if (x == p_v.x) {
|
|
|
+ if (y == p_v.y)
|
|
|
return z <= p_v.z;
|
|
|
else
|
|
|
return y < p_v.y;
|
|
@@ -378,8 +378,8 @@ bool Vector3::operator<=(const Vector3 &p_v) const {
|
|
|
|
|
|
bool Vector3::operator>=(const Vector3 &p_v) const {
|
|
|
|
|
|
- if (Math::is_equal_approx(x, p_v.x)) {
|
|
|
- if (Math::is_equal_approx(y, p_v.y))
|
|
|
+ if (x == p_v.x) {
|
|
|
+ if (y == p_v.y)
|
|
|
return z >= p_v.z;
|
|
|
else
|
|
|
return y > p_v.y;
|