#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) |
Returns a pair containing: | |
static std::pair< float, float > | DistanceSegmentToPoint (const Vector3D &p, const Vector3D &v, const Vector3D &w) |
Returns a pair containing: | |
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) |
Compute the unit vector pointing towards the X-axis of rotation. | |
static Vector3D | GetRightVector (const Rotation &rotation) |
Compute the unit vector pointing towards the Y-axis of rotation. | |
static Vector3D | GetUpVector (const Rotation &rotation) |
Compute the unit vector pointing towards the Y-axis of rotation. | |
static double | GetVectorAngle (const Vector3D &a, const Vector3D &b) |
Returns the angle between 2 vectors in radians | |
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().
被这些函数引用 carla::road::MapBuilder::AddSignalReference(), DistanceSegmentToPoint(), carla::road::Road::GetDirectedPointIn(), carla::road::Road::GetDirectedPointInNoLaneOffset(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometryArc::PosFromDist() , 以及 carla::road::element::GeometrySpiral::PosFromDist().
引用了 DistanceSquared().
被这些函数引用 carla::geom::ComputeVertexWeight(), carla::geom::Location::Distance(), carla::road::Road::GetNearestLane() , 以及 TEST().
引用了 DistanceSquared2D().
被这些函数引用 DistanceArcToPoint(), DistanceSegmentToPoint() , 以及 carla::road::Map::GetWaypoint().
|
static |
Returns a pair containing:
引用了 DEBUG_ASSERT, Distance2D(), RotatePointOnOrigin2D(), carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 carla::road::element::GeometryArc::DistanceTo() , 以及 TEST().
|
static |
Returns a pair containing:
p | point to calculate distance |
v | first point of the segment |
w | second point of the segment |
引用了 Clamp(), Distance2D(), DistanceSquared2D() , 以及 Dot2D().
被这些函数引用 carla::road::element::GeometryLine::DistanceTo(), carla::road::Map::GetClosestWaypointOnRoad() , 以及 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 |
Compute the unit vector pointing towards the X-axis of rotation.
引用了 carla::geom::Rotation::pitch, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetForwardVector().
Compute the unit vector pointing towards the Y-axis of rotation.
引用了 carla::geom::Rotation::pitch, carla::geom::Rotation::roll, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetRightVector().
Compute the unit vector pointing towards the Y-axis of rotation.
引用了 carla::geom::Rotation::pitch, carla::geom::Rotation::roll, ToRadians() , 以及 carla::geom::Rotation::yaw.
被这些函数引用 carla::geom::Rotation::GetUpVector().
Returns the angle between 2 vectors in radians
引用了 Dot() , 以及 carla::geom::Vector3D::Length().
被这些函数引用 carla::road::Map::CreateRtree().
|
inlinestatic |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
引用了 carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 DistanceArcToPoint().
|
inlinestatic |
|
inlinestaticconstexpr |
被这些函数引用 CaService::AddBasicVehicleContainerHighFrequency(), carla::road::MapBuilder::AddSignalPositionInertial(), CaService::CheckHeadingDelta(), carla::road::MapBuilder::ComputeSignalTransform(), carla::road::Lane::ComputeTransform(), CaService::GetHeading() , 以及 ARayCastSemanticLidar::SimulateLidar().
|
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().