[Mono] Various Color improvements

I also slid in a fix to C++ Vector3 > and >=
This commit is contained in:
Aaron Franke 2019-08-20 21:12:56 -04:00
parent c59da91aad
commit 34ab6549b1
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
3 changed files with 44 additions and 24 deletions

View file

@ -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;