#include <Vector3D.h>
Public Member Functions | |
Vector3D | Abs () const |
float | Length () const |
float | Length2D () const |
Vector3D | MakeSafeUnitVector (const float epsilon) const |
Vector3D | MakeUnitVector () const |
template<typename MSGPACK_OBJECT > | |
void | msgpack_object (MSGPACK_OBJECT *o, clmdep_msgpack::zone &sneaky_variable_that_shadows_z) const |
template<typename Packer > | |
void | msgpack_pack (Packer &pk) const |
void | msgpack_unpack (clmdep_msgpack::object const &o) |
bool | operator!= (const Vector3D &rhs) const |
Vector3D & | operator*= (float rhs) |
Vector3D & | operator+= (const Vector3D &rhs) |
Vector3D & | operator-= (const Vector3D &rhs) |
Vector3D & | operator-= (const float f) |
Vector3D & | operator/= (float rhs) |
bool | operator== (const Vector3D &rhs) const |
float | SquaredLength () const |
float | SquaredLength2D () const |
Vector3D ()=default | |
Vector3D (float ix, float iy, float iz) | |
Public Attributes | |
float | x = 0.0f |
float | y = 0.0f |
float | z = 0.0f |
Friends | |
Vector3D | operator* (Vector3D lhs, float rhs) |
Vector3D | operator* (float lhs, Vector3D rhs) |
Vector3D | operator+ (Vector3D lhs, const Vector3D &rhs) |
Vector3D | operator- (Vector3D lhs, const Vector3D &rhs) |
Vector3D | operator/ (Vector3D lhs, float rhs) |
Vector3D | operator/ (float lhs, Vector3D rhs) |
Definition at line 17 of file geom/Vector3D.h.
|
default |
Referenced by Abs(), MakeSafeUnitVector(), MakeUnitVector(), and operator!=().
|
inline |
Definition at line 36 of file geom/Vector3D.h.
|
inline |
Definition at line 61 of file geom/Vector3D.h.
References Vector3D().
|
inline |
Definition at line 49 of file geom/Vector3D.h.
References SquaredLength().
Referenced by carla::traffic_manager::MotionPlanStage::CollisionHandling(), ARayCastLidar::ComputeDetection(), ARayCastLidar::ComputeIntensity(), carla::geom::MeshFactory::GenerateLaneMarksForCenterLine(), carla::geom::MeshFactory::GenerateLaneMarksForNotCenterLine(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::geom::Math::GetVectorAngle(), carla::traffic_manager::TrafficLightStage::HandleNonSignalisedJunction(), MakeSafeUnitVector(), MakeUnitVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::LocalizationStage::Update(), carla::traffic_manager::MotionPlanStage::Update(), and carla::traffic_manager::CollisionStage::Update().
|
inline |
Definition at line 57 of file geom/Vector3D.h.
References SquaredLength2D().
|
inline |
Definition at line 72 of file geom/Vector3D.h.
References Length(), and Vector3D().
Referenced by carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::traffic_manager::CollisionStage::NegotiateCollision(), carla::client::detail::Client::SpawnActorWithParent(), and carla::traffic_manager::MotionPlanStage::Update().
|
inline |
Definition at line 65 of file geom/Vector3D.h.
References DEVELOPMENT_ASSERT, Length(), and Vector3D().
Referenced by carla::road::Map::GetTreesTransform(), ARayCastLidar::PostprocessDetection(), and carla::road::Map::SDFToMesh().
|
inline |
Definition at line 203 of file geom/Vector3D.h.
|
inline |
This is a workaround for an issue in msgpack library. The MSGPACK_DEFINE_ARRAY macro is shadowing our z
variable. https://github.com/msgpack/msgpack-c/issues/709
Definition at line 194 of file geom/Vector3D.h.
|
inline |
Definition at line 198 of file geom/Vector3D.h.
|
inline |
Definition at line 155 of file geom/Vector3D.h.
References Vector3D(), x, and y.
|
inline |
Definition at line 113 of file geom/Vector3D.h.
Definition at line 82 of file geom/Vector3D.h.
Definition at line 94 of file geom/Vector3D.h.
|
inline |
Definition at line 106 of file geom/Vector3D.h.
|
inline |
Definition at line 130 of file geom/Vector3D.h.
|
inline |
Definition at line 151 of file geom/Vector3D.h.
|
inline |
Definition at line 45 of file geom/Vector3D.h.
References z.
Referenced by Length(), carla::traffic_manager::MotionPlanStage::SafeAfterJunction(), carla::nav::WalkerManager::Update(), carla::traffic_manager::LocalizationStage::Update(), carla::nav::Navigation::UpdateCrowd(), and carla::traffic_manager::ALSM::UpdateIdleTime().
|
inline |
Definition at line 53 of file geom/Vector3D.h.
References y.
Referenced by Length2D().
Definition at line 120 of file geom/Vector3D.h.
Definition at line 125 of file geom/Vector3D.h.
Definition at line 89 of file geom/Vector3D.h.
Definition at line 101 of file geom/Vector3D.h.
Definition at line 137 of file geom/Vector3D.h.
Definition at line 142 of file geom/Vector3D.h.
float carla::geom::Vector3D::x = 0.0f |
Definition at line 24 of file geom/Vector3D.h.
Referenced by carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::element::DirectedPoint::ApplyLateralOffset(), carla::road::element::LaneCrossingCalculator::Calculate(), carla::traffic_manager::LocalizationStage::ComputeActionBuffer(), carla::traffic_manager::LocalizationStage::ComputeNextAction(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceArcToPoint(), carla::geom::Math::DistanceSquared(), carla::geom::Math::DistanceSquared2D(), carla::road::element::GeometrySpiral::DistanceTo(), carla::geom::Math::Dot(), carla::geom::Math::Dot2D(), carla::road::Map::FilterJunctionsByPosition(), carla::road::Map::FilterRoadsByPosition(), carla::nav::Navigation::GetAgentRoute(), carla::road::Map::GetAllCrosswalkZones(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::road::Map::GetClosestWaypointOnRoad(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::rss::RssCheck::GetGreenTrafficLightsOnRoute(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::client::TrafficLight::GetStopWaypoints(), carla::traffic_manager::MotionPlanStage::GetThreePointCircleRadius(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), carla::traffic_manager::CollisionStage::NegotiateCollision(), carla::geom::Location::operator!=(), operator!=(), carla::nav::WalkerEventVisitor::operator()(), FShapeVisitor::operator()(), operator+=(), operator-=(), carla::geom::operator<<(), carla::rpc::WheelPhysicsControl::operator==(), operator==(), carla::sensor::data::detail::PackedWalkerControl::PackedWalkerControl(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), carla::road::element::GeometryParamPoly3::PosFromDist(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), carla::ros2::ROS2::ProcessDataFromIMU(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Math::RotatePointOnOrigin2D(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint(), carla::traffic_manager::SimpleWaypoint::SetRightWaypoint(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), TEST(), carla::geom::GeoLocation::Transform(), ULoadAssetMaterialsCommandlet::ULoadAssetMaterialsCommandlet(), carla::nav::WalkerManager::Update(), carla::traffic_manager::CollisionStage::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), and carla::sensor::data::LidarData::WritePointSync().
float carla::geom::Vector3D::y = 0.0f |
Definition at line 26 of file geom/Vector3D.h.
Referenced by carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::element::DirectedPoint::ApplyLateralOffset(), carla::road::element::LaneCrossingCalculator::Calculate(), carla::traffic_manager::LocalizationStage::ComputeActionBuffer(), carla::traffic_manager::LocalizationStage::ComputeNextAction(), carla::road::MapBuilder::ComputeSignalTransform(), carla::road::Lane::ComputeTransform(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceArcToPoint(), carla::geom::Math::DistanceSquared(), carla::geom::Math::DistanceSquared2D(), carla::road::element::GeometrySpiral::DistanceTo(), carla::geom::Math::Dot(), carla::geom::Math::Dot2D(), carla::road::Map::FilterJunctionsByPosition(), carla::road::Map::FilterRoadsByPosition(), carla::geom::MeshFactory::GenerateLaneMarksForCenterLine(), carla::nav::Navigation::GetAgentRoute(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::road::Map::GetClosestWaypointOnRoad(), carla::road::Lane::GetCornerPositions(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::traffic_manager::MotionPlanStage::GetThreePointCircleRadius(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), carla::geom::Location::operator!=(), operator!=(), carla::nav::WalkerEventVisitor::operator()(), FShapeVisitor::operator()(), operator+=(), operator-=(), carla::geom::operator<<(), carla::rpc::WheelPhysicsControl::operator==(), operator==(), carla::sensor::data::detail::PackedWalkerControl::PackedWalkerControl(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), carla::road::element::GeometryParamPoly3::PosFromDist(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Math::RotatePointOnOrigin2D(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint(), carla::traffic_manager::SimpleWaypoint::SetRightWaypoint(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), SquaredLength2D(), TEST(), carla::geom::GeoLocation::Transform(), ULoadAssetMaterialsCommandlet::ULoadAssetMaterialsCommandlet(), carla::nav::WalkerManager::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), and carla::sensor::data::LidarData::WritePointSync().
float carla::geom::Vector3D::z = 0.0f |
Definition at line 28 of file geom/Vector3D.h.
Referenced by carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::road::MapBuilder::ComputeSignalTransform(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceSquared(), carla::geom::Math::Dot(), carla::nav::Navigation::GetAgentRoute(), carla::road::Map::GetClosestWaypointOnRoad(), carla::road::Lane::GetCornerPositions(), carla::road::Road::GetDirectedPointIn(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), carla::geom::MeshFactory::MergeAndSmooth(), carla::geom::Location::operator!=(), carla::nav::WalkerEventVisitor::operator()(), FShapeVisitor::operator()(), operator+=(), operator-=(), carla::geom::operator<<(), carla::rpc::WheelPhysicsControl::operator==(), operator==(), carla::sensor::data::detail::PackedWalkerControl::PackedWalkerControl(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), SquaredLength(), TEST(), carla::geom::GeoLocation::Transform(), ULoadAssetMaterialsCommandlet::ULoadAssetMaterialsCommandlet(), carla::nav::WalkerManager::Update(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::CollisionStage::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), and carla::sensor::data::LidarData::WritePointSync().