DimensionComponent.ixx File
Stores physical dimensions together with a measurement unit. More...
Included Headers
#include <helios.engine.core.units.Unit>
#include <helios.engine.core.spatial>
#include <helios.math.types>
#include <helios.engine.runtime.world.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | spatial |
| namespace | components |
Classes Index
| class | DimensionComponent<THandle> |
|
Component that defines the physical dimensions (scale) of an entity. More... | |
Description
Stores physical dimensions together with a measurement unit.
File Listing
The file content with the documentation metadata removed is:
18export namespace helios::engine::spatial::components {
29 class DimensionComponent {
48 helios::engine::core::units::Unit unit_;
93 explicit DimensionComponent(
94 const float width,
95 const float height,
96 const float depth,
100 explicit DimensionComponent(
101 const helios::math::vec3f scale,
110 DimensionComponent(const DimensionComponent& other) :
111 width_(other.width_),
112 height_(other.height_),
113 depth_(other.depth_),
114 unit_(other.unit_),
115 isDirty_(true) {}
117 DimensionComponent& operator=(const DimensionComponent&) = default;
145 void clearDirty() noexcept {
185 void setDimensions(const float width, const float height, const float depth,
189 width_ = width;
190 height_ = height;
191 depth_ = depth;
192 unit_ = unit;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.