Merge pull request #8277 from tagcup/math_checks

Added various functions basic math classes. Also enabled math checks …
This commit is contained in:
Rémi Verschelde
2017-04-24 11:16:20 +02:00
committed by GitHub
13 changed files with 217 additions and 50 deletions

View File

@@ -92,6 +92,10 @@ Quat Quat::normalized() const {
return *this / length();
}
bool Quat::is_normalized() const {
return Math::is_equal_approx(length(), 1.0);
}
Quat Quat::inverse() const {
return Quat(-x, -y, -z, w);
}