PROJ C++ API
|
Numeric value, without a physical unit of measure. More...
#include <common.hpp>
Public Member Functions | |
Scale (double valueIn=0.0) | |
Instanciate a Scale. More... | |
Scale (double valueIn, const UnitOfMeasure &unitIn) | |
Instanciate a Scale. 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, without a physical unit of measure.
|
explicit |
Instanciate a Scale.
valueIn | value |
|
explicit |
Instanciate a Scale.
valueIn | value |
unitIn | unit. Constraint: unit.type() == UnitOfMeasure::Type::SCALE |