#include <Transform.h>
Public Member Functions | |
Vector3D | GetForwardVector () const |
std::array< float, 16 > | GetInverseMatrix () const |
Computes the 4-matrix form of the inverse transformation. More... | |
std::array< float, 16 > | GetMatrix () const |
Computes the 4-matrix form of the transformation. More... | |
Vector3D | GetRightVector () const |
Vector3D | GetUpVector () const |
void | InverseTransformPoint (Vector3D &in_point) const |
Applies the inverse of this transformation to in_point. More... | |
MSGPACK_DEFINE_ARRAY (location, rotation) | |
bool | operator!= (const Transform &rhs) const |
bool | operator== (const Transform &rhs) const |
Transform ()=default | |
Transform (const Location &in_location) | |
Transform (const Location &in_location, const Rotation &in_rotation) | |
void | TransformPoint (Vector3D &in_point) const |
Applies this transformation to in_point (first translation then rotation). More... | |
void | TransformVector (Vector3D &in_vector) const |
Applies this transformation to in_vector (rotation only). More... | |
Public Attributes | |
Location | location |
Rotation | rotation |
Definition at line 21 of file geom/Transform.h.
|
default |
|
inline |
Definition at line 40 of file geom/Transform.h.
|
inline |
Definition at line 44 of file geom/Transform.h.
|
inline |
Definition at line 52 of file geom/Transform.h.
References carla::geom::Rotation::GetForwardVector().
Referenced by carla::road::Map::CreateRtree(), carla::client::TrafficLight::GetStopWaypoints(), and carla::traffic_manager::MotionPlanStage::Update().
|
inline |
Computes the 4-matrix form of the inverse transformation.
Definition at line 111 of file geom/Transform.h.
References InverseTransformPoint(), carla::geom::Rotation::pitch, carla::geom::Rotation::roll, carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
|
inline |
Computes the 4-matrix form of the transformation.
Definition at line 88 of file geom/Transform.h.
References carla::geom::Rotation::pitch, carla::geom::Rotation::roll, carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
|
inline |
Definition at line 56 of file geom/Transform.h.
References carla::geom::Rotation::GetRightVector().
|
inline |
Definition at line 60 of file geom/Transform.h.
References carla::geom::Rotation::GetUpVector().
|
inline |
Applies the inverse of this transformation to in_point.
Definition at line 80 of file geom/Transform.h.
References carla::geom::Rotation::InverseRotateVector(), and location.
Referenced by carla::geom::BoundingBox::Contains(), GetInverseMatrix(), and TEST().
|
inline |
Definition at line 144 of file geom/Transform.h.
References Transform().
|
inline |
Definition at line 140 of file geom/Transform.h.
|
inline |
Applies this transformation to in_point (first translation then rotation).
Definition at line 65 of file geom/Transform.h.
References location, and carla::geom::Rotation::RotateVector().
Referenced by carla::road::Map::GetAllCrosswalkZones(), carla::client::TrafficLight::GetStopWaypoints(), carla::geom::BoundingBox::GetWorldVertices(), and TEST().
|
inline |
Applies this transformation to in_vector (rotation only).
Definition at line 73 of file geom/Transform.h.
References carla::geom::Rotation::RotateVector().
Location carla::geom::Transform::location |
Definition at line 28 of file geom/Transform.h.
Referenced by carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::MapBuilder::CreateJunctionBoundingBoxes(), carla::rss::RssCheck::CreateWorldModel(), carla::client::detail::Simulator::GetActorLocation(), carla::road::Map::GetAllCrosswalkZones(), carla::rss::RssCheck::GetRoutingTargets(), carla::nav::Navigation::GetWalkerTransform(), InverseTransformPoint(), carla::client::LaneInvasionCallback::MakeBounds(), operator==(), carla::client::detail::Client::SpawnActorWithParent(), TransformPoint(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::ALSM::UpdateData(), and carla::traffic_manager::ALSM::UpdateUnregisteredActorsData().
Rotation carla::geom::Transform::rotation |
Definition at line 30 of file geom/Transform.h.
Referenced by carla::nav::Navigation::AddOrUpdateVehicle(), carla::road::Map::GetAllCrosswalkZones(), carla::rss::RssCheck::GetSpeed(), carla::nav::Navigation::GetWalkerTransform(), carla::client::LaneInvasionCallback::MakeBounds(), operator==(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::ALSM::UpdateData(), and carla::traffic_manager::ALSM::UpdateUnregisteredActorsData().