|
template<typename ProtoA , typename ProtoB > |
bool | apollo::common::util::IsProtoEqual (const ProtoA &a, const ProtoB &b) |
|
template<typename T > |
bool | apollo::common::util::WithinBound (T start, T end, T value) |
|
PointENU | apollo::common::util::operator+ (const PointENU enu, const math::Vec2d &xy) |
|
template<typename T > |
void | apollo::common::util::uniform_slice (const T start, const T end, uint32_t num, std::vector< T > *sliced) |
| uniformly slice a segment [start, end] to num + 1 pieces the result sliced will contain the n + 1 points that slices the provided segment.
|
|
template<typename U , typename V > |
double | apollo::common::util::DistanceXY (const U &u, const V &v) |
| calculate the distance beteween Point u and Point v, which are all have member function x() and y() in XY dimension.
|
|
template<typename U , typename V > |
bool | apollo::common::util::SamePointXY (const U &u, const V &v) |
| Check if two points u and v are the same point on XY dimension.
|
|
PathPoint | apollo::common::util::GetWeightedAverageOfTwoPathPoints (const PathPoint &p1, const PathPoint &p2, const double w1, const double w2) |
|
template<typename T > |
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type | apollo::common::util::IsFloatEqual (T x, T y, int ulp=2) |
|
template<typename T , size_t count> |
bool | ExcuteAllFunctions (T *obj, FunctionInfo< T > fun_list[]) |
|
template<typename A , typename B > |
std::ostream & | operator<< (std::ostream &os, std::pair< A, B > &p) |
|