|
CARLA
|
Linear acceleration in metres per second squared. More...
#include <Acceleration.h>
Inheritance diagram for carla::geom::Acceleration:Public Member Functions | |
| Acceleration ()=default | |
| Acceleration (const FVector &a_cm_per_s2) | |
Build an Acceleration (m/s^2) from an Unreal FVector expressed in centimetres per second squared. | |
| constexpr | Acceleration (const Vector3D &v) |
| constexpr | Acceleration (float ix, float iy, float iz) |
| FVector | ToFVectorCmPerSecondSquared () const |
Return this Acceleration as an Unreal FVector in centimetres per second squared. | |
Public Member Functions inherited from carla::geom::Vector3D | |
| Vector3D | Abs () const |
| float | Length () const |
| float | Length2D () const |
| Vector3D | MakeUnitVector (const float epsilon=2.0f *std::numeric_limits< float >::epsilon()) const |
| Return a unit-length copy of this vector. | |
| 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) |
| constexpr bool | operator!= (const Vector3D &rhs) const |
| constexpr Vector3D & | operator*= (float rhs) |
| constexpr Vector3D & | operator+= (const Vector3D &rhs) |
| constexpr Vector3D & | operator-= (const float f) |
| constexpr Vector3D & | operator-= (const Vector3D &rhs) |
| constexpr Vector3D & | operator/= (float rhs) |
| Vector3D & | operator= (const FVector &rhs)=delete |
| constexpr bool | operator== (const Vector3D &rhs) const |
| constexpr float | SquaredLength () const |
| constexpr float | SquaredLength2D () const |
| Vector3D | ToCentimeters () const |
| Return a Vector3D converted from meters to centimeters. | |
| FVector | ToFVector () const |
| Vector3D | ToMeters () const |
| Return a Vector3D converted from centimeters to meters. | |
| Vector3D ()=default | |
| Vector3D (const FVector &v)=delete | |
| These 2 methods are explicitly deleted to avoid creating them by other users, unlike locations, some vectors have units and some don't, by removing these methods we found several places were the conversion from cm to m was missing. | |
| constexpr | Vector3D (float ix, float iy, float iz) |
Additional Inherited Members | |
Public Attributes inherited from carla::geom::Vector3D | |
| float | x = 0.0f |
| float | y = 0.0f |
| float | z = 0.0f |
Static Public Attributes inherited from carla::geom::Vector3D | |
| static constexpr auto | Dim = 3 |
Linear acceleration in metres per second squared.
Inherits Vector3D storage and arithmetic and carries unit semantics so consumers do not silently mix cm/s^2 and m/s^2 payloads at API boundaries.
Definition at line 17 of file Acceleration.h.
|
default |
|
inlineconstexpr |
Definition at line 21 of file Acceleration.h.
|
inlineexplicitconstexpr |
Definition at line 25 of file Acceleration.h.
|
inlineexplicit |
Build an Acceleration (m/s^2) from an Unreal FVector expressed in centimetres per second squared.
Definition at line 33 of file Acceleration.h.
|
inline |
Return this Acceleration as an Unreal FVector in centimetres per second squared.
Definition at line 42 of file Acceleration.h.
References carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.