Skip to main content

QuaternionComponent.ixx File

Generic quaternion ECS component with dirty-state tracking. More...

Included Headers

#include <concepts> #include <cstddef> #include <helios.math>

Namespaces Index

namespacehelios
namespaceengine
namespacecore
namespacecomponents

Classes Index

classQuaternionComponent<TDomainTag, TNumericType, THandle, Args>

Generic quaternion component with domain tagging and dirty tracking. More...

Description

Generic quaternion ECS component with dirty-state tracking.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <concepts>
8#include <cstddef>
9
10export module helios.engine.core.components.QuaternionComponent;
11
12import helios.math;
13
14
16
24 template<typename TDomainTag, typename TNumericType, typename THandle, typename ... Args>
25 requires std::floating_point<TNumericType>
27
28 helios::math::quat<TNumericType> quat = helios::math::quat<TNumericType>::identity();
29
30 public:
31
32 using Value_type = helios::math::quat<TNumericType>;
33 using Handle_type = THandle;
34
41 return quat;
42 }
43
49 void setValue(const Value_type& value) noexcept {
50 quat = value;
51 }
52
53
54 };
55
56}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.