diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-03-29 05:33:03 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-09-23 00:28:49 -0400 |
commit | 9394c057b871d1e52ae8995a56948dfae0f5583e (patch) | |
tree | a7819b853dca4159563ee92c78024ae1ff263160 /core/math/basis.h | |
parent | 23dabcd2d063468b32233c8f3e0c130ce75f7403 (diff) |
Remove redundant is_equal_approx_ratio method
is_equal_approx is able to handle values of any size, and is_equal_approx_ratio is no longer used in any exposed APIs, so we don't need is_equal_approx_ratio anymore. Also, add #ifdef MATH_CHECKS for a method that is only used when MATH_CHECKS is defined.
Diffstat (limited to 'core/math/basis.h')
-rw-r--r-- | core/math/basis.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/math/basis.h b/core/math/basis.h index 34cdfbbe1e..2584f1ff48 100644 --- a/core/math/basis.h +++ b/core/math/basis.h @@ -146,7 +146,6 @@ public: } bool is_equal_approx(const Basis &p_basis) const; - bool is_equal_approx_ratio(const Basis &a, const Basis &b, real_t p_epsilon = UNIT_EPSILON) const; bool operator==(const Basis &p_matrix) const; bool operator!=(const Basis &p_matrix) const; @@ -236,7 +235,9 @@ public: void orthonormalize(); Basis orthonormalized() const; +#ifdef MATH_CHECKS bool is_symmetric() const; +#endif Basis diagonalize(); operator Quat() const { return get_quat(); } |