Drake
GeoPositionT< T > Class Template Reference

A position in 3-dimensional geographical Cartesian space, i.e., in the world frame, consisting of three components x, y, and z. More...

#include <drake/automotive/maliput/api/lane_data.h>

Public Member Functions

 GeoPositionT ()
 Default constructor, initializing all components to zero. More...
 
 GeoPositionT (const T &x, const T &y, const T &z)
 Fully parameterized constructor. More...
 
const Vector3< T > & xyz () const
 Returns all components as 3-vector [x, y, z]. More...
 
void set_xyz (const Vector3< T > &xyz)
 Sets all components from 3-vector [x, y, z]. More...
 
GeoPositionT< doubleMakeDouble () const
 Constructs a GeoPositionT<double> from other types, producing a clone if already double. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 GeoPositionT (const GeoPositionT &)=default
 
GeoPositionToperator= (const GeoPositionT &)=default
 
 GeoPositionT (GeoPositionT &&)=default
 
GeoPositionToperator= (GeoPositionT &&)=default
 
Getters and Setters
T x () const
 Gets x value. More...
 
void set_x (const T &x)
 Sets x value. More...
 
T y () const
 Gets y value. More...
 
void set_y (const T &y)
 Sets y value. More...
 
T z () const
 Gets z value. More...
 
void set_z (const T &z)
 Sets z value. More...
 

Static Public Member Functions

static GeoPositionT< TFromXyz (const Vector3< T > &xyz)
 Constructs a GeoPositionT from a 3-vector xyz of the form [x, y, z]. More...
 

Detailed Description

template<typename T>
class drake::maliput::api::GeoPositionT< T >

A position in 3-dimensional geographical Cartesian space, i.e., in the world frame, consisting of three components x, y, and z.

Instantiated templates for the following kinds of T's are provided:

They are already available to link against in the containing library.

Constructor & Destructor Documentation

◆ GeoPositionT() [1/4]

GeoPositionT ( const GeoPositionT< T > &  )
default

◆ GeoPositionT() [2/4]

GeoPositionT ( GeoPositionT< T > &&  )
default

◆ GeoPositionT() [3/4]

GeoPositionT ( )
inline

Default constructor, initializing all components to zero.

◆ GeoPositionT() [4/4]

GeoPositionT ( const T x,
const T y,
const T z 
)
inline

Fully parameterized constructor.

Member Function Documentation

◆ FromXyz()

static GeoPositionT<T> FromXyz ( const Vector3< T > &  xyz)
inlinestatic

Constructs a GeoPositionT from a 3-vector xyz of the form [x, y, z].

◆ MakeDouble()

GeoPositionT<double> MakeDouble ( ) const
inline

Constructs a GeoPositionT<double> from other types, producing a clone if already double.

◆ operator=() [1/2]

GeoPositionT& operator= ( GeoPositionT< T > &&  )
default

◆ operator=() [2/2]

GeoPositionT& operator= ( const GeoPositionT< T > &  )
default

◆ set_x()

void set_x ( const T x)
inline

Sets x value.

◆ set_xyz()

void set_xyz ( const Vector3< T > &  xyz)
inline

Sets all components from 3-vector [x, y, z].

◆ set_y()

void set_y ( const T y)
inline

Sets y value.

◆ set_z()

void set_z ( const T z)
inline

Sets z value.

◆ x()

T x ( ) const
inline

Gets x value.

◆ xyz()

const Vector3<T>& xyz ( ) const
inline

Returns all components as 3-vector [x, y, z].

◆ y()

T y ( ) const
inline

Gets y value.

◆ z()

T z ( ) const
inline

Gets z value.


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