Uses of Class
com.badlogic.gdx.math.Quaternion
-
-
Uses of Quaternion in com.badlogic.gdx.graphics
Methods in com.badlogic.gdx.graphics with parameters of type Quaternion Modifier and Type Method Description voidCamera. rotate(Quaternion quat)Rotates the direction and up vector of this camera by the givenQuaternion. -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.decals
Fields in com.badlogic.gdx.graphics.g3d.decals declared as Quaternion Modifier and Type Field Description protected QuaternionDecal. rotationprotected static QuaternionDecal. rotatorMethods in com.badlogic.gdx.graphics.g3d.decals that return Quaternion Modifier and Type Method Description QuaternionDecal. getRotation()Returns the rotation.Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type Quaternion Modifier and Type Method Description voidDecal. setRotation(Quaternion q)Sets the rotation of this decal based on the provided Quaternion -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.loader
Fields in com.badlogic.gdx.graphics.g3d.loader declared as Quaternion Modifier and Type Field Description protected QuaternionG3dModelLoader. tempQ -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.model
Fields in com.badlogic.gdx.graphics.g3d.model declared as Quaternion Modifier and Type Field Description QuaternionNode. rotationthe rotation, relative to the parent, not modified by animationsFields in com.badlogic.gdx.graphics.g3d.model with type parameters of type Quaternion Modifier and Type Field Description Array<NodeKeyframe<Quaternion>>NodeAnimation. rotationthe rotation keyframes if any (might be null), sorted by time ascending -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.model.data
Fields in com.badlogic.gdx.graphics.g3d.model.data declared as Quaternion Modifier and Type Field Description QuaternionModelNode. rotationFields in com.badlogic.gdx.graphics.g3d.model.data with type parameters of type Quaternion Modifier and Type Field Description Array<ModelNodeKeyframe<Quaternion>>ModelNodeAnimation. rotationthe keyframes, defining the rotation of a node for a specific timestamp -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.particles
Fields in com.badlogic.gdx.graphics.g3d.particles declared as Quaternion Modifier and Type Field Description protected static QuaternionParticleControllerComponent. TMP_Qprotected static QuaternionParticleControllerComponent. TMP_Q2Methods in com.badlogic.gdx.graphics.g3d.particles with parameters of type Quaternion Modifier and Type Method Description voidParticleController. rotate(Quaternion rotation)Post-multiplies the current transformation with a rotation matrix represented by the given quaternion.voidParticleEffect. rotate(Quaternion rotation)Applies the rotation to the current transformation matrix of each controller. -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.particles.influencers
Fields in com.badlogic.gdx.graphics.g3d.particles.influencers declared as Quaternion Modifier and Type Field Description protected static QuaternionDynamicsModifier. TMP_Q -
Uses of Quaternion in com.badlogic.gdx.graphics.g3d.utils
Fields in com.badlogic.gdx.graphics.g3d.utils declared as Quaternion Modifier and Type Field Description QuaternionBaseAnimationController.Transform. rotationMethods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Quaternion Modifier and Type Method Description BaseAnimationController.TransformBaseAnimationController.Transform. lerp(Vector3 targetT, Quaternion targetR, Vector3 targetS, float alpha)BaseAnimationController.TransformBaseAnimationController.Transform. set(Vector3 t, Quaternion r, Vector3 s) -
Uses of Quaternion in com.badlogic.gdx.math
Methods in com.badlogic.gdx.math that return Quaternion Modifier and Type Method Description QuaternionQuaternion. add(float qx, float qy, float qz, float qw)Add the x,y,z,w components of the passed in quaternion to the ones of this quaternionQuaternionQuaternion. add(Quaternion quaternion)Add the x,y,z,w components of the passed in quaternion to the ones of this quaternionQuaternionQuaternion. conjugate()Conjugate the quaternion.QuaternionQuaternion. cpy()QuaternionQuaternion. exp(float alpha)Calculates (this quaternion)^alpha where alpha is a real number and stores the result in this quaternion.QuaternionMatrix4. getRotation(Quaternion rotation)Gets the rotation of this matrix.QuaternionMatrix4. getRotation(Quaternion rotation, boolean normalizeAxes)Gets the rotation of this matrix.QuaternionQuaternion. idt()Sets the quaternion to an identity QuaternionQuaternionQuaternion. mul(float scalar)Multiplies the components of this quaternion with the given scalar.QuaternionQuaternion. mul(float x, float y, float z, float w)Multiplies this quaternion with another one in the form of this = this * otherQuaternionQuaternion. mul(Quaternion other)Multiplies this quaternion with another one in the form of this = this * otherQuaternionQuaternion. mulLeft(float x, float y, float z, float w)Multiplies this quaternion with another one in the form of this = other * thisQuaternionQuaternion. mulLeft(Quaternion other)Multiplies this quaternion with another one in the form of this = other * thisQuaternionQuaternion. nor()Normalizes this quaternion to unit lengthQuaternionQuaternion. set(float x, float y, float z, float w)Sets the components of the quaternionQuaternionQuaternion. set(Quaternion quaternion)Sets the quaternion components from the given quaternion.QuaternionQuaternion. set(Vector3 axis, float angle)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setEulerAngles(float yaw, float pitch, float roll)Sets the quaternion to the given euler angles in degrees.QuaternionQuaternion. setEulerAnglesRad(float yaw, float pitch, float roll)Sets the quaternion to the given euler angles in radians.QuaternionQuaternion. setFromAxes(boolean normalizeAxes, float xx, float xy, float xz, float yx, float yy, float yz, float zx, float zy, float zz)Sets the Quaternion from the given x-, y- and z-axis.QuaternionQuaternion. setFromAxes(float xx, float xy, float xz, float yx, float yy, float yz, float zx, float zy, float zz)Sets the Quaternion from the given x-, y- and z-axis which have to be orthonormal.QuaternionQuaternion. setFromAxis(float x, float y, float z, float degrees)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromAxis(Vector3 axis, float degrees)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromAxisRad(float x, float y, float z, float radians)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromAxisRad(Vector3 axis, float radians)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromCross(float x1, float y1, float z1, float x2, float y2, float z2)Set this quaternion to the rotation between two vectors.QuaternionQuaternion. setFromCross(Vector3 v1, Vector3 v2)Set this quaternion to the rotation between two vectors.QuaternionQuaternion. setFromMatrix(boolean normalizeAxes, Matrix3 matrix)Sets the Quaternion from the given matrix, optionally removing any scaling.QuaternionQuaternion. setFromMatrix(boolean normalizeAxes, Matrix4 matrix)Sets the Quaternion from the given matrix, optionally removing any scaling.QuaternionQuaternion. setFromMatrix(Matrix3 matrix)Sets the Quaternion from the given rotation matrix, which must not contain scaling.QuaternionQuaternion. setFromMatrix(Matrix4 matrix)Sets the Quaternion from the given rotation matrix, which must not contain scaling.QuaternionQuaternion. slerp(Quaternion[] q)Spherical linearly interpolates multiple quaternions and stores the result in this Quaternion.QuaternionQuaternion. slerp(Quaternion[] q, float[] w)Spherical linearly interpolates multiple quaternions by the given weights and stores the result in this Quaternion.QuaternionQuaternion. slerp(Quaternion end, float alpha)Spherical linear interpolation between this quaternion and the other quaternion, based on the alpha value in the range [0,1].Methods in com.badlogic.gdx.math with parameters of type Quaternion Modifier and Type Method Description QuaternionQuaternion. add(Quaternion quaternion)Add the x,y,z,w components of the passed in quaternion to the ones of this quaternionfloatQuaternion. dot(Quaternion other)Get the dot product between this and the other quaternion (commutative).QuaternionMatrix4. getRotation(Quaternion rotation)Gets the rotation of this matrix.QuaternionMatrix4. getRotation(Quaternion rotation, boolean normalizeAxes)Gets the rotation of this matrix.voidQuaternion. getSwingTwist(float axisX, float axisY, float axisZ, Quaternion swing, Quaternion twist)Get the swing rotation and twist rotation for the specified axis.voidQuaternion. getSwingTwist(Vector3 axis, Quaternion swing, Quaternion twist)Get the swing rotation and twist rotation for the specified axis.QuaternionQuaternion. mul(Quaternion other)Multiplies this quaternion with another one in the form of this = this * otherVector3Vector3. mul(Quaternion quat)Multiplies the vector by the givenQuaternion.QuaternionQuaternion. mulLeft(Quaternion other)Multiplies this quaternion with another one in the form of this = other * thisMatrix4Matrix4. rotate(Quaternion rotation)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. set(Quaternion quaternion)Sets the matrix to a rotation matrix representing the quaternion.Matrix4Matrix4. set(Vector3 position, Quaternion orientation)Set this matrix to the specified translation and rotation.Matrix4Matrix4. set(Vector3 position, Quaternion orientation, Vector3 scale)Set this matrix to the specified translation, rotation and scale.QuaternionQuaternion. set(Quaternion quaternion)Sets the quaternion components from the given quaternion.QuaternionQuaternion. slerp(Quaternion[] q)Spherical linearly interpolates multiple quaternions and stores the result in this Quaternion.QuaternionQuaternion. slerp(Quaternion[] q, float[] w)Spherical linearly interpolates multiple quaternions by the given weights and stores the result in this Quaternion.QuaternionQuaternion. slerp(Quaternion end, float alpha)Spherical linear interpolation between this quaternion and the other quaternion, based on the alpha value in the range [0,1].Constructors in com.badlogic.gdx.math with parameters of type Quaternion Constructor Description Matrix4(Quaternion quaternion)Constructs a rotation matrix from the givenQuaternion.Matrix4(Vector3 position, Quaternion rotation, Vector3 scale)Construct a matrix from the given translation, rotation and scale.Quaternion(Quaternion quaternion)Constructor, sets the quaternion components from the given quaternion.
-