|
maliput
|
A 3-dimensional position in a Lane-frame, consisting of three components:
#include <include/maliput/api/lane_data.h>
Public Member Functions | |
| LanePosition () | |
| Default constructor, initializing all components to zero. More... | |
| LanePosition (double s, double r, double h) | |
| Fully parameterized constructor. More... | |
| const math::Vector3 & | srh () const |
Returns all components as 3-vector [s, r, h]. More... | |
| void | set_srh (const math::Vector3 &srh) |
Sets all components from 3-vector [s, r, h]. More... | |
Static Public Member Functions | |
| static LanePosition | FromSrh (const math::Vector3 &srh) |
Constructs a LanePosition from a 3-vector srh of the form [s, r, h]. More... | |
Getters and Setters | |
| double | s () const |
Gets s value. More... | |
| void | set_s (double s) |
Sets s value. More... | |
| double | r () const |
Gets r value. More... | |
| void | set_r (double r) |
Sets r value. More... | |
| double | h () const |
Gets h value. More... | |
| void | set_h (double h) |
Sets h value. More... | |
| LanePosition | ( | ) |
Default constructor, initializing all components to zero.
| LanePosition | ( | double | s, |
| double | r, | ||
| double | h | ||
| ) |
Fully parameterized constructor.
|
static |
Constructs a LanePosition from a 3-vector srh of the form [s, r, h].
| double h | ( | ) | const |
Gets h value.
| double r | ( | ) | const |
Gets r value.
| double s | ( | ) | const |
Gets s value.
| void set_h | ( | double | h | ) |
Sets h value.
| void set_r | ( | double | r | ) |
Sets r value.
| void set_s | ( | double | s | ) |
Sets s value.
| void set_srh | ( | const math::Vector3 & | srh | ) |
Sets all components from 3-vector [s, r, h].
| const math::Vector3& srh | ( | ) | const |
Returns all components as 3-vector [s, r, h].