mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
added Quat.safeEulerAngles() for JS
This commit is contained in:
parent
c68abb3499
commit
0c547a8160
2 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
//
|
||||
|
||||
#include <OctreeConstants.h>
|
||||
#include <SharedUtil.h>
|
||||
#include "Quat.h"
|
||||
|
||||
glm::quat Quat::multiply(const glm::quat& q1, const glm::quat& q2) {
|
||||
|
@ -35,3 +36,7 @@ glm::vec3 Quat::getRight(const glm::quat& orientation) {
|
|||
glm::vec3 Quat::getUp(const glm::quat& orientation) {
|
||||
return orientation * IDENTITY_UP;
|
||||
}
|
||||
|
||||
glm::vec3 Quat::safeEulerAngles(const glm::quat& orientation) {
|
||||
return safeEulerAngles(orientation);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ public slots:
|
|||
glm::vec3 getFront(const glm::quat& orientation);
|
||||
glm::vec3 getRight(const glm::quat& orientation);
|
||||
glm::vec3 getUp(const glm::quat& orientation);
|
||||
glm::vec3 safeEulerAngles(const glm::quat& orientation);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue