Value type that represents a length.
More...
#include <Length.h>
|
|
constexpr | Length () noexcept |
| | Construct a null length.
|
| |
|
constexpr | Length (Double l) noexcept |
| | Construct a length.
|
| |
|
constexpr | Length (double l) noexcept |
| | Construct a length.
|
| |
|
constexpr | PhysicsType () noexcept=default |
| | Construct a null value.
|
| |
|
constexpr | PhysicsType (Double value) noexcept |
| | Construct a value.
|
| |
|
constexpr Double | value () const noexcept |
| | Get value.
|
| |
|
constexpr bool | isNull () const noexcept |
| | Check if value is null.
|
| |
|
constexpr Length | operator- () const |
| | Negation operator.
|
| |
|
constexpr void | clear () noexcept |
| | Clear value.
|
| |
Value type that represents a length.
Definition at line 31 of file Length.h.
| static Length Mdt::Numeric::Length::fromQVariant |
( |
const QVariant & |
l | ) |
|
|
inlinestatic |
Get length from a QVariant.
If l is null, a null length is returned
- Precondition
- If l has a value (is not null), it must be convertible to double
Definition at line 56 of file Length.h.
The documentation for this class was generated from the following file: