QuaternionComponent Class Template
Generic quaternion component with domain tagging and dirty tracking. More...
Declaration
Public Member Functions Index
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| auto | value () const noexcept -> const helios::math::quat< TNumericType > & |
|
Returns the current quaternion value. More... | |
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| void | setValue (const helios::math::quat< TNumericType > &value) noexcept |
|
Updates the quaternion value and marks the component as dirty. More... | |
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| bool | isDirty () const noexcept |
|
Returns whether the component value changed since last clear. More... | |
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| void | clearDirty () noexcept |
|
Clears the dirty flag. More... | |
Private Member Attributes Index
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| helios::math::quat< TNumericType > | quat = helios::math::quat<TNumericType>::identity() |
template <typename TDomainTag, typename TNumericType, typename ... Args> | |
| bool | isDirty_ = true |
Description
Generic quaternion component with domain tagging and dirty tracking.
- Template Parameters
-
TDomainTag Domain tag type used for semantic component grouping.
TNumericType Floating-point scalar type used by helios::math::quat.
Args Additional template arguments (e.g. owner handle, tags).
Definition at line 25 of file QuaternionComponent.ixx.
Public Member Functions
clearDirty()
| inline noexcept |
Clears the dirty flag.
Definition at line 65 of file QuaternionComponent.ixx.
isDirty()
| inline noexcept |
setValue()
| inline noexcept |
Updates the quaternion value and marks the component as dirty.
- Parameters
-
value New quaternion value.
Definition at line 47 of file QuaternionComponent.ixx.
Reference helios::engine::core::components::QuaternionComponent< TDomainTag, TNumericType, Args >::value.
value()
| inline noexcept |
Returns the current quaternion value.
- Returns
Const reference to the stored quaternion.
Definition at line 38 of file QuaternionComponent.ixx.
Referenced by helios::engine::core::components::QuaternionComponent< TDomainTag, TNumericType, Args >::setValue.
Private Member Attributes
isDirty_
|
Definition at line 29 of file QuaternionComponent.ixx.
quat
|
Definition at line 27 of file QuaternionComponent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.