Skip to main content

AABBComponent.ixx File

Included Headers

#include <cassert> #include <helios.math>

Namespaces Index

namespacehelios
namespaceengine
namespacecore
namespacecomponents
namespacemath
namespaceconcepts

Classes Index

classAABBComponent<TDomainTag, TNumericType, Args>

Generic AABB value component with dirty-state tracking. More...

File Listing

The file content with the documentation metadata removed is:

1module;
2
3#include <cassert>
4
5export module helios.engine.core.components.AABBComponent;
6
7import helios.math;
8
9using namespace helios::math;
10using namespace helios::math::concepts;
12
20 template<typename TDomainTag, typename TNumericType, typename ... Args>
23
24 helios::math::aabb<TNumericType> value_{};
25
26 bool isDirty_ = true;
27
28 public:
29
30 AABBComponent() = default;
31
37 explicit AABBComponent(const aabb<TNumericType>& value) : value_(value){}
38
48 value_(other.value_),
49 isDirty_(true) {}
50
57
64 isDirty_ = true;
65 }
66
73 isDirty_ = true;
74 }
75
80 isDirty_ = false;
81 }
82
89 return isDirty_;
90 }
91
98 return value_;
99 }
100
102 return value_;
103 }
104
110 void setValue(const aabb<TNumericType> value) noexcept {
111 value_ = value;
112 isDirty_ = true;
113 };
114
115
116 };
117
118}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.