parent
6b57c1f73a
commit
d968562e96
|
@ -546,10 +546,6 @@ aiMatrix4x4t<TReal>& aiMatrix4x4t<TReal>::FromEulerAnglesXYZ(TReal x, TReal y, T
|
||||||
template <typename TReal>
|
template <typename TReal>
|
||||||
AI_FORCE_INLINE
|
AI_FORCE_INLINE
|
||||||
bool aiMatrix4x4t<TReal>::IsIdentity(const TReal epsilon) const {
|
bool aiMatrix4x4t<TReal>::IsIdentity(const TReal epsilon) const {
|
||||||
// Use a small epsilon to solve floating-point inaccuracies
|
|
||||||
// Default value for backward compatibility with legacy code:
|
|
||||||
// const static TReal epsilon = 10e-3f;
|
|
||||||
|
|
||||||
return (a2 <= epsilon && a2 >= -epsilon &&
|
return (a2 <= epsilon && a2 >= -epsilon &&
|
||||||
a3 <= epsilon && a3 >= -epsilon &&
|
a3 <= epsilon && a3 >= -epsilon &&
|
||||||
a4 <= epsilon && a4 >= -epsilon &&
|
a4 <= epsilon && a4 >= -epsilon &&
|
||||||
|
|
Loading…
Reference in New Issue