|
PROJ C++ API
|
Numeric value, with a linear unit of measure. More...
#include <common.hpp>


Public Member Functions | |
| Length (double valueIn=0.0) | |
| Instanciate a Length. More... | |
| Length (double valueIn, const UnitOfMeasure &unitIn) | |
| Instanciate a Length. More... | |
Public Member Functions inherited from osgeo::proj::common::Measure | |
| Measure (double valueIn=0.0, const UnitOfMeasure &unitIn=UnitOfMeasure()) | |
| Instanciate a Measure. | |
| const UnitOfMeasure & | unit () PROJ_CONST_DECL |
| Return the unit of the Measure. | |
| double | getSIValue () PROJ_CONST_DECL |
| Return the value of the Measure, after conversion to the corresponding unit of the International System. | |
| double | value () PROJ_CONST_DECL |
| Return the value of the measure, expressed in the unit() | |
| double | convertToUnit (const UnitOfMeasure &otherUnit) PROJ_CONST_DECL |
| Return the value of this measure expressed into the provided unit. | |
| bool | operator== (const Measure &other) PROJ_CONST_DECL |
| Return whether two measures are equal. More... | |
| bool | isEquivalentTo (const Measure &other, util::IComparable::Criterion criterion=util::IComparable::Criterion::STRICT) const |
| Returns whether an object is equivalent to another one. More... | |
Numeric value, with a linear unit of measure.
|
explicit |
Instanciate a Length.
| valueIn | value |
| osgeo::proj::common::Length::Length | ( | double | valueIn, |
| const UnitOfMeasure & | unitIn | ||
| ) |
Instanciate a Length.
| valueIn | value |
| unitIn | unit. Constraint: unit.type() == UnitOfMeasure::Type::LINEAR |
1.8.11