#include <types.hpp>
Strongly-typed distance in meters. Use Meters::from_cm() or Meters::from_mm() to convert from other units.
Definition at line 55 of file types.hpp.
◆ Meters() [1/2]
| libstp::foundation::Meters::Meters |
( |
| ) |
|
|
constexprdefault |
◆ Meters() [2/2]
| libstp::foundation::Meters::Meters |
( |
double | m | ) |
|
|
inlineexplicitconstexpr |
◆ from_cm()
| constexpr Meters libstp::foundation::Meters::from_cm |
( |
double | cm | ) |
|
|
inlinestaticconstexpr |
◆ from_mm()
| constexpr Meters libstp::foundation::Meters::from_mm |
( |
double | mm | ) |
|
|
inlinestaticconstexpr |
◆ operator double()
| libstp::foundation::Meters::operator double |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator*()
| Meters libstp::foundation::Meters::operator* |
( |
double | scale | ) |
const |
|
inlineconstexpr |
◆ operator+()
| Meters libstp::foundation::Meters::operator+ |
( |
Meters | other | ) |
const |
|
inlineconstexpr |
◆ operator-() [1/2]
| Meters libstp::foundation::Meters::operator- |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator-() [2/2]
| Meters libstp::foundation::Meters::operator- |
( |
Meters | other | ) |
const |
|
inlineconstexpr |
◆ operator/()
| Meters libstp::foundation::Meters::operator/ |
( |
double | scale | ) |
const |
|
inlineconstexpr |
◆ to_cm()
| double libstp::foundation::Meters::to_cm |
( |
| ) |
const |
|
inlineconstexpr |
◆ to_mm()
| double libstp::foundation::Meters::to_mm |
( |
| ) |
const |
|
inlineconstexpr |
◆ value
| double libstp::foundation::Meters::value {0.0} |
The documentation for this struct was generated from the following file:
- /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-foundation/include/foundation/types.hpp