Function WGSCovMatrixFromConfidenceEllipse

Function Documentation

inline std::array<double, 4> WGSCovMatrixFromConfidenceEllipse(double semi_major, double semi_minor, double major_orientation)

Convert the confidence ellipse to a covariance matrix.

Note that the major_orientation is given in degrees, while the object_heading is given in radians!

Parameters:
  • semi_major – Semi major axis length in meters

  • semi_minor – Semi minor axis length in meters

  • major_orientation – Orientation of the major axis in degrees, relative to WGS84

Returns:

std::array<double, 4> The covariance matrix in WGS coordinates (x = North, y = East)