Apollo 10.0
自动驾驶开放平台
math_utils.cc 文件参考
#include "modules/common/math/math_utils.h"
#include <cmath>
#include <utility>
math_utils.cc 的引用(Include)关系图:

浏览源代码.

命名空间

namespace  apollo
 class register implement
 
namespace  apollo::common
 apollo::common
 
namespace  apollo::common::math
 apollo::common::math
 

函数

double apollo::common::math::Sqr (const double x)
 
double apollo::common::math::CrossProd (const Vec2d &start_point, const Vec2d &end_point_1, const Vec2d &end_point_2)
 Cross product between two 2-D vectors from the common start point, and end at two other points.
 
double apollo::common::math::InnerProd (const Vec2d &start_point, const Vec2d &end_point_1, const Vec2d &end_point_2)
 Inner product between two 2-D vectors from the common start point, and end at two other points.
 
double apollo::common::math::CrossProd (const double x0, const double y0, const double x1, const double y1)
 Cross product between two vectors.
 
double apollo::common::math::InnerProd (const double x0, const double y0, const double x1, const double y1)
 Inner product between two vectors.
 
double apollo::common::math::WrapAngle (const double angle)
 Wrap angle to [0, 2 * PI).
 
double apollo::common::math::NormalizeAngle (const double angle)
 Normalize angle to [-PI, PI).
 
double apollo::common::math::AngleDiff (const double from, const double to)
 Calculate the difference between angle from and to
 
int apollo::common::math::RandomInt (const int s, const int t, unsigned int rand_seed=1)
 Get a random integer between two integer values by a random seed.
 
double apollo::common::math::RandomDouble (const double s, const double t, unsigned int rand_seed=1)
 Get a random double between two integer values by a random seed.
 
double apollo::common::math::Gaussian (const double u, const double std, const double x)
 
Eigen::Vector2d apollo::common::math::RotateVector2d (const Eigen::Vector2d &v_in, const double theta)
 
std::pair< double, double > apollo::common::math::Cartesian2Polar (double x, double y)
 
double apollo::common::math::check_negative (double input_data)