Template Function setReferencePosition(T&, const double, const double, const double)

Function Documentation

template<typename T>
inline void setReferencePosition(T &ref_position, const double latitude, const double longitude, const double altitude = AltitudeValue::UNAVAILABLE)

Sets the reference position in the given ReferencePostion object.

This function sets the latitude, longitude, and altitude of the reference position. If the altitude is not provided, it is set to AltitudeValue::UNAVAILABLE.

Parameters:
  • ref_position – ReferencePostion or ReferencePositionWithConfidence object to set the reference position in.

  • latitude – The latitude value position in degree as decimal number.

  • longitude – The longitude value in degree as decimal number.

  • altitude – The altitude value (above the reference ellipsoid surface) in meter as decimal number (optional).