diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-04-01 11:11:02 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-04-01 11:11:02 -0300 |
commit | dee98d3b6d58cbe42fc403d999b278aec9447105 (patch) | |
tree | e2d62de5d795629df650c936d94d896022c84055 /core/math/basis.h | |
parent | ba1a1686592a3b4b7fef6856174fbb29dd36dae5 (diff) | |
download | redot-engine-dee98d3b6d58cbe42fc403d999b278aec9447105.tar.gz |
Some improvements to is_equal_approx, restored Quat operator.
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 128e56b494..aa0ddb280f 100644 --- a/core/math/basis.h +++ b/core/math/basis.h @@ -133,7 +133,8 @@ public: return elements[0][2] * v[0] + elements[1][2] * v[1] + elements[2][2] * v[2]; } - bool is_equal_approx(const Basis &a, const Basis &b) const; + bool is_equal_approx(const Basis &a, const Basis &b, real_t p_epsilon=CMP_EPSILON) 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; |