#include <Math.h>
静态 Public 成员函数 | |
template<typename T > | |
static T | Clamp (T a, T min=T(0), T max=T(1)) |
static auto | Cross (const Vector3D &a, const Vector3D &b) |
static auto | Distance (const Vector3D &a, const Vector3D &b) |
static auto | Distance2D (const Vector3D &a, const Vector3D &b) |
static std::pair< float, float > | DistanceArcToPoint (Vector3D p, Vector3D start_pos, float length, float heading, float curvature) |
计算点到弧的距离 返回一个包含: | |
static std::pair< float, float > | DistanceSegmentToPoint (const Vector3D &p, const Vector3D &v, const Vector3D &w) |
计算点到线段的距离 返回一个包含: | |
static auto | DistanceSquared (const Vector3D &a, const Vector3D &b) |
static auto | DistanceSquared2D (const Vector3D &a, const Vector3D &b) |
static auto | Dot (const Vector3D &a, const Vector3D &b) |
static auto | Dot2D (const Vector3D &a, const Vector3D &b) |
static std::vector< int > | GenerateRange (int a, int b) |
static Vector3D | GetForwardVector (const Rotation &rotation) |
计算指向 rotation 的 X 轴的单位向量 | |
static Vector3D | GetRightVector (const Rotation &rotation) |
计算指向 rotation 的 Y 轴的单位向量 | |
static Vector3D | GetUpVector (const Rotation &rotation) |
计算指向 rotation 的 Z 轴的单位向量 | |
static double | GetVectorAngle (const Vector3D &a, const Vector3D &b) |
返回两个向量之间的夹角(弧度) | |
static float | LinearLerp (float a, float b, float f) |
template<typename T > | |
static constexpr T | Pi () |
template<typename T > | |
static constexpr T | Pi2 () |
static Vector3D | RotatePointOnOrigin2D (Vector3D p, float angle) |
template<typename T > | |
static T | Square (const T &a) |
template<typename T > | |
static constexpr T | ToDegrees (T rad) |
template<typename T > | |
static constexpr T | ToRadians (T deg) |
|
inlinestatic |
引用了 min().
被这些函数引用 DistanceSegmentToPoint(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometryArc::PosFromDist() , 以及 carla::road::element::GeometrySpiral::PosFromDist().
引用了 DistanceSquared().
被这些函数引用 carla::geom::ComputeVertexWeight(), carla::geom::Location::Distance() , 以及 TEST().
引用了 DistanceSquared2D().
被这些函数引用 DistanceArcToPoint() , 以及 DistanceSegmentToPoint().
|
static |
计算点到弧的距离 返回一个包含:
引用了 DEBUG_ASSERT, Distance2D(), RotatePointOnOrigin2D(), carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 carla::road::element::GeometryArc::DistanceTo() , 以及 TEST().
|
static |
计算点到线段的距离 返回一个包含:
p | 要计算距离的点 |
v | 线段的第一个点 |
w | 线段的第二个点 |
引用了 Clamp(), Distance2D(), DistanceSquared2D() , 以及 Dot2D().
被这些函数引用 carla::road::element::GeometryLine::DistanceTo() , 以及 TEST().
|
inlinestatic |
引用了 Square(), carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.
被这些函数引用 Distance() , 以及 carla::geom::Location::DistanceSquared().
|
inlinestatic |
引用了 Square(), carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 Distance2D() , 以及 DistanceSegmentToPoint().
引用了 carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.
被这些函数引用 GetVectorAngle() , 以及 carla::client::detail::Client::SpawnActorWithParent().
引用了 carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 DistanceSegmentToPoint().
|
static |
计算指向 rotation 的 X 轴的单位向量
引用了 carla::geom::Rotation::pitch, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetForwardVector().
计算指向 rotation 的 Y 轴的单位向量
引用了 carla::geom::Rotation::pitch, carla::geom::Rotation::roll, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetRightVector().
计算指向 rotation 的 Z 轴的单位向量
引用了 carla::geom::Rotation::pitch, carla::geom::Rotation::roll, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetUpVector().
|
inlinestatic |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
引用了 carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 DistanceArcToPoint().
|
inlinestatic |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
被这些函数引用 GetForwardVector(), carla::geom::Transform::GetInverseMatrix(), carla::geom::Transform::GetMatrix(), GetRightVector(), GetUpVector(), carla::geom::Rotation::InverseRotateVector(), carla::geom::LatLonToMercator(), carla::geom::LatToScale(), carla::geom::Rotation::RotateVector() , 以及 ARayCastSemanticLidar::SimulateLidar().