28 return CALIBRATION_INVALID_VALUE;
30 geodetic::geodetic_coords_t pos;
31 double timestamp = -1;
32 if (((
UnitConverter *)c)->proj.inverse(x, y, pos, ×tamp,
false))
33 return CALIBRATION_INVALID_VALUE;
36 return CALIBRATION_INVALID_VALUE;
38 return get_sun_angle(timestamp, pos.lat, pos.lon);
Base class for unit converters. This is meant to implement conversions between calibration unit types...
Definition calibration_converter.h:26
Universal UnitConverter class, handling all conversion logic between any calibration unit type to ano...
Definition calibration_converter.h:115
Sun angle converter.
Definition sun_angle.h:23
bool convert_range(const UnitConverter *c, double &min, double &max)
Convert unit ranges. This does the same as convert, except it's optimized for converting a range.
Definition sun_angle.h:41
double convert(const UnitConverter *c, double x, double y, double val)
Core function (for images!) implementing conversion between calibration unit types.
Definition sun_angle.h:25