Vec3Component.ixx File
Included Headers
#include <cassert>
#include <helios.math.concepts>
#include <helios.math.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | core |
| namespace | components |
Classes Index
| class | Vec3Component<TDomainTag, TNumericType, Args> |
|
Generic 3D value component with dirty-state tracking. More... | |
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::core::components {
22 template<typename TDomainTag, typename TNumericType, typename ... Args>
23 requires IsNumeric<TNumericType>
24 class Vec3Component {
32 Vec3Component() = default;
39 explicit Vec3Component(const vec3<TNumericType> value) : value_(value){}
48 explicit Vec3Component(
49 const TNumericType x, const TNumericType y, const TNumericType z)
60 Vec3Component(const Vec3Component& other) :
61 value_(other.value_),
62 isDirty_(true) {}
65 Vec3Component& operator=(const Vec3Component&) = default;
69 Vec3Component& operator=(Vec3Component&&) noexcept = default;
92 void clearDirty() noexcept {
114 [[nodiscard]] vec3<TNumericType> value() noexcept {
123 void setValue(const vec3<TNumericType> value) noexcept {
124 value_ = value;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.