Unit.ixx File
Included Headers
#include <string>
#include <helios.math.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | core |
| namespace | units |
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::core::units {
23 Meter,
29 Centimeter,
35 Seconds,
41 MilliSeconds
48 constexpr auto HELIOS_SPATIAL_UNIT = Unit::Meter;
53 constexpr auto HELIOS_TEMPORAL_UNIT = Unit::Seconds;
58 constexpr float CENTIMETERS = 0.01f;
68 constexpr float MILLISECONDS = 0.001f;
83 return cm * CENTIMETERS;
141 return ms * MILLISECONDS;
157 case Unit::Meter:
159 case Unit::Centimeter:
161 case Unit::Seconds:
163 case Unit::MilliSeconds:
178 [[nodiscard]] constexpr helios::math::aabbf from(helios::math::aabbf aabb, const Unit unit) noexcept {
180 case Unit::Meter:
181 return fromM(aabb);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.