Template Function setPositionConfidenceEllipse(PositionConfidenceEllipse&, const std::array<double, 4>&, const double)
Defined in File cdd_v2-1-1_setters.h
Function Documentation
-
template<typename PositionConfidenceEllipse>
inline void setPositionConfidenceEllipse(PositionConfidenceEllipse &position_confidence_ellipse, const std::array<double, 4> &covariance_matrix, const double object_heading) Set the Position Confidence Ellipse object.
- Parameters:
position_confidence_ellipse –
covariance_matrix – The four values of the covariance matrix in the order: cov_xx, cov_xy, cov_yx, cov_yy The matrix has to be SPD, otherwise a std::invalid_argument exception is thrown. Its coordinate system is aligned with the object (x = longitudinal, y = lateral)
object_heading – The heading of the object in rad, with respect to WGS84