22 #include <glm/gtc/quaternion.hpp>
27 #include <GLMHelpers.h>
29 #include "Scriptable.h"
63 Q_PROPERTY(glm::quat IDENTITY READ IDENTITY CONSTANT)
80 glm::quat multiply(
const glm::quat& q1,
const glm::quat& q2);
96 glm::quat normalize(
const glm::quat& q);
112 glm::quat conjugate(
const glm::quat& q);
128 glm::quat lookAt(
const glm::vec3& eye,
const glm::vec3& center,
const glm::vec3& up);
144 glm::quat lookAtSimple(
const glm::vec3& eye,
const glm::vec3& center);
161 glm::quat rotationBetween(
const glm::vec3& v1,
const glm::vec3& v2);
175 glm::quat fromVec3Degrees(
const glm::vec3& vec3);
186 glm::quat fromVec3Radians(
const glm::vec3& vec3);
198 glm::quat fromPitchYawRollDegrees(
float pitch,
float yaw,
float roll);
210 glm::quat fromPitchYawRollRadians(
float pitch,
float yaw,
float roll);
226 glm::quat inverse(
const glm::quat& q);
236 glm::vec3 getFront(
const glm::quat& orientation) {
return getForward(orientation); }
249 glm::vec3 getForward(
const glm::quat& orientation);
258 glm::vec3 getRight(
const glm::quat& orientation);
267 glm::vec3 getUp(
const glm::quat& orientation);
280 glm::vec3 safeEulerAngles(
const glm::quat& orientation);
293 glm::quat angleAxis(
float angle,
const glm::vec3& v);
307 glm::vec3 axis(
const glm::quat& orientation);
321 float angle(
const glm::quat& orientation);
343 glm::quat mix(
const glm::quat& q1,
const glm::quat& q2,
float alpha);
356 glm::quat
slerp(
const glm::quat& q1,
const glm::quat& q2,
float alpha);
371 glm::quat squad(
const glm::quat& q1,
const glm::quat& q2,
const glm::quat& s1,
const glm::quat& s2,
float h);
392 float dot(
const glm::quat& q1,
const glm::quat& q2);
410 void print(
const QString& label,
const glm::quat& q,
bool asDegrees =
false);
432 bool equal(
const glm::quat& q1,
const glm::quat& q2);
452 glm::quat cancelOutRollAndPitch(
const glm::quat& q);
470 glm::quat cancelOutRoll(
const glm::quat& q);
473 const glm::quat& IDENTITY()
const {
return Quaternions::IDENTITY; }
Provides the Quat scripting interface.
Definition: Quat.h:61
glm::quat slerp(const glm::quat &q1, const glm::quat &q2, float alpha)
Spherical Linear Interpolation.
Definition: Quat.cpp:108
[ScriptInterface] Provides an engine-independent interface for QScriptable
Definition: Scriptable.h:29