|
@@ -324,48 +324,40 @@ bool Vector3::operator<(const Vector3 &p_v) const {
|
|
|
if (x == p_v.x) {
|
|
|
if (y == p_v.y) {
|
|
|
return z < p_v.z;
|
|
|
- } else {
|
|
|
- return y < p_v.y;
|
|
|
}
|
|
|
- } else {
|
|
|
- return x < p_v.x;
|
|
|
+ return y < p_v.y;
|
|
|
}
|
|
|
+ return x < p_v.x;
|
|
|
}
|
|
|
|
|
|
bool Vector3::operator>(const Vector3 &p_v) const {
|
|
|
if (x == p_v.x) {
|
|
|
if (y == p_v.y) {
|
|
|
return z > p_v.z;
|
|
|
- } else {
|
|
|
- return y > p_v.y;
|
|
|
}
|
|
|
- } else {
|
|
|
- return x > p_v.x;
|
|
|
+ return y > p_v.y;
|
|
|
}
|
|
|
+ return x > p_v.x;
|
|
|
}
|
|
|
|
|
|
bool Vector3::operator<=(const Vector3 &p_v) const {
|
|
|
if (x == p_v.x) {
|
|
|
if (y == p_v.y) {
|
|
|
return z <= p_v.z;
|
|
|
- } else {
|
|
|
- return y < p_v.y;
|
|
|
}
|
|
|
- } else {
|
|
|
- return x < p_v.x;
|
|
|
+ return y < p_v.y;
|
|
|
}
|
|
|
+ return x < p_v.x;
|
|
|
}
|
|
|
|
|
|
bool Vector3::operator>=(const Vector3 &p_v) const {
|
|
|
if (x == p_v.x) {
|
|
|
if (y == p_v.y) {
|
|
|
return z >= p_v.z;
|
|
|
- } else {
|
|
|
- return y > p_v.y;
|
|
|
}
|
|
|
- } else {
|
|
|
- return x > p_v.x;
|
|
|
+ return y > p_v.y;
|
|
|
}
|
|
|
+ return x > p_v.x;
|
|
|
}
|
|
|
|
|
|
_FORCE_INLINE_ Vector3 vec3_cross(const Vector3 &p_a, const Vector3 &p_b) {
|