pub struct RoadPosition { /* private fields */ }
Expand description
A maliput::api::RoadPosition
Wrapper around C++ implementation maliput::api::RoadPosition
.
Implementations§
Source§impl RoadPosition
impl RoadPosition
Sourcepub fn new(lane: &Lane<'_>, lane_pos: &LanePosition) -> RoadPosition
pub fn new(lane: &Lane<'_>, lane_pos: &LanePosition) -> RoadPosition
Create a new RoadPosition
with the given lane
and lane_pos
.
Sourcepub fn to_inertial_position(&self) -> InertialPosition
pub fn to_inertial_position(&self) -> InertialPosition
Get the inertial position of the RoadPosition
via doing a Lane::ToInertialPosition query call.
Sourcepub fn pos(&self) -> LanePosition
pub fn pos(&self) -> LanePosition
Get the lane position of the RoadPosition
.
Auto Trait Implementations§
impl Freeze for RoadPosition
impl RefUnwindSafe for RoadPosition
impl !Send for RoadPosition
impl !Sync for RoadPosition
impl Unpin for RoadPosition
impl UnwindSafe for RoadPosition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more