SMACC2
Loading...
Searching...
No Matches
cl_px4_mr::geo_detail Namespace Reference

Functions

double radians (double deg)
 
double degrees (double rad)
 
double constrain (double v, double lo, double hi)
 

Function Documentation

◆ constrain()

double cl_px4_mr::geo_detail::constrain ( double v,
double lo,
double hi )
inline

Definition at line 65 of file geo_utils.hpp.

65{ return std::min(std::max(v, lo), hi); }

Referenced by cl_px4_mr::MapProjection::project().

Here is the caller graph for this function:

◆ degrees()

double cl_px4_mr::geo_detail::degrees ( double rad)
inline

Definition at line 64 of file geo_utils.hpp.

64{ return rad * (180.0 / M_PI); }

Referenced by cl_px4_mr::MapProjection::referenceLat(), cl_px4_mr::MapProjection::referenceLon(), and cl_px4_mr::MapProjection::reproject().

Here is the caller graph for this function:

◆ radians()

double cl_px4_mr::geo_detail::radians ( double deg)
inline

Definition at line 63 of file geo_utils.hpp.

63{ return deg * (M_PI / 180.0); }

Referenced by cl_px4_mr::haversineDistance(), cl_px4_mr::initialBearing(), cl_px4_mr::MapProjection::initReference(), and cl_px4_mr::MapProjection::project().

Here is the caller graph for this function: