|
@@ -322,8 +322,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;
|
|
@@ -334,8 +334,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;
|
|
@@ -346,8 +346,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;
|
|
@@ -358,8 +358,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;
|