CARLA
Public Member Functions | Friends | List of all members
carla::geom::Location Class Reference

#include <Location.h>

+ Inheritance diagram for carla::geom::Location:
+ Collaboration diagram for carla::geom::Location:

Public Member Functions

auto Distance (const Location &loc) const
 
auto DistanceSquared (const Location &loc) const
 
 Location ()=default
 
 Location (const Vector3D &rhs)
 
 Location (const Vector3DInt &rhs)
 
bool operator!= (const Location &rhs) const
 
Locationoperator+= (const Location &rhs)
 
Locationoperator-= (const Location &rhs)
 
bool operator== (const Location &rhs) const
 
- Public Member Functions inherited from carla::geom::Vector3D
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
 
Vector3Doperator*= (float rhs)
 
Vector3Doperator+= (const Vector3D &rhs)
 
Vector3Doperator-= (const Vector3D &rhs)
 
Vector3Doperator-= (const float f)
 
Vector3Doperator/= (float rhs)
 
bool operator== (const Vector3D &rhs) const
 
float SquaredLength () const
 
float SquaredLength2D () const
 
 Vector3D ()=default
 
 Vector3D (float ix, float iy, float iz)
 

Friends

Location operator+ (Location lhs, const Location &rhs)
 
Location operator- (Location lhs, const Location &rhs)
 

Additional Inherited Members

- Public Attributes inherited from carla::geom::Vector3D
float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 

Detailed Description

Definition at line 22 of file geom/Location.h.

Constructor & Destructor Documentation

◆ Location() [1/3]

carla::geom::Location::Location ( )
default

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ Location() [2/3]

carla::geom::Location::Location ( const Vector3D rhs)
inline

Definition at line 33 of file geom/Location.h.

◆ Location() [3/3]

carla::geom::Location::Location ( const Vector3DInt rhs)
inline

Definition at line 35 of file geom/Location.h.

Member Function Documentation

◆ Distance()

auto carla::geom::Location::Distance ( const Location loc) const
inline

Definition at line 48 of file geom/Location.h.

References carla::geom::Math::Distance().

Referenced by carla::traffic_manager::SimpleWaypoint::Distance(), and carla::traffic_manager::MotionPlanStage::Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DistanceSquared()

auto carla::geom::Location::DistanceSquared ( const Location loc) const
inline

Definition at line 44 of file geom/Location.h.

References carla::geom::Math::DistanceSquared().

Referenced by carla::nav::WalkerManager::GetTrafficLightAffecting().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator!=()

bool carla::geom::Location::operator!= ( const Location rhs) const
inline

Definition at line 84 of file geom/Location.h.

References Location(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.

+ Here is the call graph for this function:

◆ operator+=()

Location& carla::geom::Location::operator+= ( const Location rhs)
inline

Definition at line 56 of file geom/Location.h.

◆ operator-=()

Location& carla::geom::Location::operator-= ( const Location rhs)
inline

Definition at line 66 of file geom/Location.h.

◆ operator==()

bool carla::geom::Location::operator== ( const Location rhs) const
inline

Definition at line 80 of file geom/Location.h.

Friends And Related Function Documentation

◆ operator+

Location operator+ ( Location  lhs,
const Location rhs 
)
friend

Definition at line 61 of file geom/Location.h.

◆ operator-

Location operator- ( Location  lhs,
const Location rhs 
)
friend

Definition at line 71 of file geom/Location.h.


The documentation for this class was generated from the following file: