Function lupnt::ScaleLengthForCoordinateScaleChecked

Function Documentation

inline double lupnt::ScaleLengthForCoordinateScaleChecked(double value, CoordinateScale from, CoordinateScale to)

Rescale a length-dimensioned value from one CoordinateScale to another.

Throws:

std::invalid_argument – if the scales are not related by a constant factor (see CheckedCoordinateScaleRatio)