|
static const ezSimdQuat | MakeIdentity () |
| Static function that returns a quaternion that represents the identity rotation (none).
|
|
static ezSimdQuat | MakeFromElements (ezSimdFloat x, ezSimdFloat y, ezSimdFloat z, ezSimdFloat w) |
| Sets the individual elements of the quaternion directly. Note that x,y,z do NOT represent a rotation axis, and w does NOT represent an angle. More...
|
|
static ezSimdQuat | MakeFromAxisAndAngle (const ezSimdVec4f &vRotationAxis, const ezSimdFloat &fAngle) |
| Creates a quaternion from a rotation-axis and an angle (angle is given in Radians or as an ezAngle) More...
|
|
static ezSimdQuat | MakeShortestRotation (const ezSimdVec4f &vDirFrom, const ezSimdVec4f &vDirTo) |
| Creates a quaternion, that rotates through the shortest arc from "vDirFrom" to "vDirTo".
|
|
static ezSimdQuat | MakeSlerp (const ezSimdQuat &qFrom, const ezSimdQuat &qTo, const ezSimdFloat &t) |
| Returns a quaternion that is the spherical linear interpolation of the other two.
|
|
◆ GetRotationAxisAndAngle()
Returns the rotation-axis and angle (in Radians), that this quaternion rotates around.
- Todo:
- optimize
◆ IsEqualRotation()
Determines whether this and qOther represent the same rotation. This is a rather slow operation.
Currently it fails when one of the given quaternions is identity (so no rotation, at all), as it tries to compare rotation axis' and angles, which is undefined for the identity quaternion (also there are infinite representations for 'identity', so it's difficult to check for it).
◆ MakeFromAxisAndAngle()
Creates a quaternion from a rotation-axis and an angle (angle is given in Radians or as an ezAngle)
- Todo:
- optimize
◆ MakeFromElements()
Sets the individual elements of the quaternion directly. Note that x,y,z do NOT represent a rotation axis, and w does NOT represent an angle.
Use this function only if you have good understanding of quaternion math and know exactly what you are doing.
The documentation for this class was generated from the following files:
- /home/runner/work/ezEngine/ezEngine/Code/Engine/Foundation/SimdMath/SimdQuat.h
- /home/runner/work/ezEngine/ezEngine/Code/Engine/Foundation/SimdMath/Implementation/SimdQuat.cpp
- /home/runner/work/ezEngine/ezEngine/Code/Engine/Foundation/SimdMath/Implementation/SimdQuat_inl.h