Merge pull request #8277 from tagcup/math_checks
Added various functions basic math classes. Also enabled math checks …
This commit is contained in:
commit
5ae1e172da
13 changed files with 217 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue