[Mono] Various Color improvements
I also slid in a fix to C++ Vector3 > and >=
This commit is contained in:
parent
c59da91aad
commit
34ab6549b1
3 changed files with 44 additions and 24 deletions
|
|
@ -369,8 +369,8 @@ bool Vector3::operator<(const Vector3 &p_v) const {
|
|||
|
||||
bool Vector3::operator>(const Vector3 &p_v) const {
|
||||
|
||||
if (x == p_v.x) {
|
||||
if (y == p_v.y)
|
||||
if (Math::is_equal_approx(x, p_v.x)) {
|
||||
if (Math::is_equal_approx(y, p_v.y))
|
||||
return z > p_v.z;
|
||||
else
|
||||
return y > p_v.y;
|
||||
|
|
@ -393,8 +393,8 @@ bool Vector3::operator<=(const Vector3 &p_v) const {
|
|||
|
||||
bool Vector3::operator>=(const Vector3 &p_v) const {
|
||||
|
||||
if (x == p_v.x) {
|
||||
if (y == p_v.y)
|
||||
if (Math::is_equal_approx(x, p_v.x)) {
|
||||
if (Math::is_equal_approx(y, p_v.y))
|
||||
return z >= p_v.z;
|
||||
else
|
||||
return y > p_v.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue