|
| | Orientation (void) |
| | Default constructor (identity orientation).
|
| |
| | Orientation (OrientationComponentType value) |
| | Construct by filling all components with the same OrientationComponentType value.
|
| |
| | Orientation (const utility::math::Quaternion< OrientationComponentType > &quaternion) |
| | Construct from a quaternion.
|
| |
| | Orientation (OrientationComponentType x, OrientationComponentType y, OrientationComponentType z, OrientationComponentType w) |
| | Construct from explicit quaternion components (xyzw order).
|
| |
| | Orientation (std::initializer_list< OrientationComponentType > values) |
| | Construct from initializer list of three PositionComponentType values.
|
| |
| | Orientation (const std::initializer_list< OrientationComponentType > &value) |
| | Construct from a const initializer list of three PositionComponentType values.
|
| |
| | Orientation (const Orientation &other)=default |
| | Copy constructor.
|
| |
| | Orientation (Orientation &&other) noexcept=default |
| | Move constructor.
|
| |
| Orientation & | operator= (const Orientation &other)=default |
| | Copy assignment operator.
|
| |
| Orientation & | operator= (Orientation &&other) noexcept=default |
| | Move assignment operator.
|
| |
|
| ~Orientation (void)=default |
| | Default destructor for Orientation.
|
| |
| utility::math::Vector< OrientationComponentType, 3 > | getForward (void) const noexcept |
| | Get the forward (Z-) axis in world space.
|
| |
| utility::math::Vector< OrientationComponentType, 3 > | getUp (void) const noexcept |
| | Get the up (Y+) axis in world space.
|
| |
| utility::math::Vector< OrientationComponentType, 3 > | getRight (void) const noexcept |
| | Get the right (X+) axis in world space.
|
| |
| utility::math::Vector< OrientationComponentType, 3 > | transformPoint (const utility::math::Vector< OrientationComponentType, 3 > &local) const noexcept |
| | Transform a point from local to world space.
|
| |
| utility::math::Vector< OrientationComponentType, 3 > | rotateVector (const utility::math::Vector< OrientationComponentType, 3 > &direction) const noexcept |
| | Rotate a direction vector by this orientation.
|
| |
| Orientation | combined (const Orientation &parent) const noexcept |
| | Combine with another orientation (parent * this).
|
| |
| math::Matrix4x4F | toRotationMatrix (void) const noexcept |
| | Convert the orientation to a 4x4 rotation matrix.
|
| |
| Orientation | normalized (void) const noexcept |
| | Return a normalized orientation.
|
| |
| Orientation | inversed (void) const noexcept |
| | Return inverse orientation.
|
| |
| bool | isIdentity (OrientationComponentType epsilon=OrientationComponentType { 1e-6 }) const noexcept |
| | Check whether this is approximately the identity orientation.
|
| |
| bool | operator== (const Orientation &other) const noexcept |
| | Equality operator for Orientation.
|
| |
| bool | operator!= (const Orientation &other) const noexcept |
| | Inequality operator for Orientation.
|
| |
| bool | operator< (const Orientation &other) const noexcept |
| | Less-than operator for Orientation.
|
| |
| | Quaternion () |
| | Default constructor (identity quaternion).
|
| |
| | Quaternion (QuaternionComponentType x, QuaternionComponentType y, QuaternionComponentType z, QuaternionComponentType w) |
| | Construct from explicit components in (x, y, z, w) order.
|
| |
| | Quaternion (const glm::qua< QuaternionComponentType > &q) |
| | Construct from a GLM quaternion.
|
| |
| | Quaternion (const Quaternion &other)=default |
| | Copy constructor.
|
| |
| | Quaternion (Quaternion &&other) noexcept=default |
| | Move constructor.
|
| |
|
| ~Quaternion ()=default |
| | Default destructor for Quaternion.
|
| |
| Quaternion & | operator= (const Quaternion &other)=default |
| | Copy assignment operator.
|
| |
| Quaternion & | operator= (Quaternion &&other) noexcept=default |
| | Move assignment operator.
|
| |
| Quaternion | operator+ (const Quaternion &rhs) const noexcept |
| | Quaternion addition.
|
| |
| Quaternion & | operator+= (const Quaternion &rhs) noexcept |
| | Quaternion addition assignment.
|
| |
| Quaternion | operator- (const Quaternion &rhs) const noexcept |
| | Quaternion subtraction.
|
| |
| Quaternion | operator- (void) const noexcept |
| | Unary negation.
|
| |
| Quaternion & | operator-= (const Quaternion &rhs) noexcept |
| | Quaternion subtraction assignment.
|
| |
| Quaternion | operator* (const Quaternion &rhs) const noexcept |
| | Quaternion multiplication (Hamilton product).
|
| |
| Quaternion | operator* (QuaternionComponentType scalar) const noexcept |
| | Scalar multiplication.
|
| |
| Quaternion & | operator*= (const Quaternion &rhs) noexcept |
| | Quaternion multiplication assignment (Hamilton product).
|
| |
| Quaternion & | operator*= (QuaternionComponentType scalar) noexcept |
| | Scalar multiplication assignment.
|
| |
| bool | operator== (const Quaternion &rhs) const noexcept |
| | Equality comparison.
|
| |
| bool | equalsEpsilon (const Quaternion &rhs, QuaternionComponentType epsilon=QuaternionComponentType { 1e-5 }) const |
| | Approximate equality using an epsilon threshold.
|
| |
| bool | operator!= (const Quaternion &rhs) const noexcept |
| | Inequality comparison.
|
| |
template<CanBeOrientationComponent OrientationComponentType>
class utility::graphic::Orientation< OrientationComponentType >
Represents the current 3D orientation (pose) of an object or view.
- Template Parameters
-
| OrientationComponentType | Floating-point type for quaternion components. |
- Note
- An orientation describes how the object is rotated in space relative to a reference frame (e.g. world or parent), but does not describe the history of how it got there.
Definition at line 53 of file orientation.hpp.