Drake
GeoPosition Class 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

 GeoPosition ()
 Default constructor, initializing all components to zero. More...
 
 GeoPosition (double x, double y, double z)
 Fully parameterized constructor. More...
 
 GeoPosition (const Vector3< double > &xyz)
 Fully parameterized constructor from a 3-vector xyz of the form [x, y, z]. More...
 
const Vector3< double > & xyz () const
 Returns all components as 3-vector [x, y, z]. More...
 
void set_xyz (const Vector3< double > &xyz)
 Sets all components from 3-vector [x, y, z]. More...
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 GeoPosition (const GeoPosition &)=default
 
GeoPositionoperator= (const GeoPosition &)=default
 
 GeoPosition (GeoPosition &&)=default
 
GeoPositionoperator= (GeoPosition &&)=default
 
Getters and Setters
double x () const
 Gets x value. More...
 
void set_x (double x)
 Sets x value. More...
 
double y () const
 Gets y value. More...
 
void set_y (double y)
 Sets y value. More...
 
double z () const
 Gets z vaue. More...
 
void set_z (double z)
 Sets z value. More...
 

Static Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

GeoPosition ( const GeoPosition )
default
GeoPosition ( GeoPosition &&  )
default
GeoPosition ( )
inline

Default constructor, initializing all components to zero.

GeoPosition ( double  x,
double  y,
double  z 
)
inline

Fully parameterized constructor.

GeoPosition ( const Vector3< double > &  xyz)
inlineexplicit

Fully parameterized constructor from a 3-vector xyz of the form [x, y, z].

Member Function Documentation

static GeoPosition FromXyz ( const Vector3< double > &  xyz)
inlinestatic

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

GeoPosition& operator= ( GeoPosition &&  )
default
GeoPosition& operator= ( const GeoPosition )
default
void set_x ( double  x)
inline

Sets x value.

Here is the caller graph for this function:

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

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

void set_y ( double  y)
inline

Sets y value.

Here is the caller graph for this function:

void set_z ( double  z)
inline

Sets z value.

Here is the call graph for this function:

Here is the caller graph for this function:

double x ( ) const
inline

Gets x value.

Here is the caller graph for this function:

const Vector3<double>& xyz ( ) const
inline

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

Here is the caller graph for this function:

double y ( ) const
inline

Gets y value.

Here is the caller graph for this function:

double z ( ) const
inline

Gets z vaue.

Here is the caller graph for this function:


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