pub struct LanePosition { /* private fields */ }
Expand description
A 3-dimensional position in a Lane
-frame, consisting of three components:
- s is longitudinal position, as arc-length along a Lane’s reference line.
- r is lateral position, perpendicular to the reference line at s. +r is to to the left when traveling in the direction of +s.
- h is height above the road surface.
§Example
use maliput::api::LanePosition;
let lane_pos = LanePosition::new(1.0, 2.0, 3.0);
println!("lane_pos = {}", lane_pos);
assert_eq!(lane_pos.s(), 1.0);
assert_eq!(lane_pos.r(), 2.0);
assert_eq!(lane_pos.h(), 3.0);
Implementations§
Source§impl LanePosition
impl LanePosition
Trait Implementations§
Source§impl Debug for LanePosition
impl Debug for LanePosition
Source§impl Display for LanePosition
impl Display for LanePosition
Source§impl PartialEq for LanePosition
impl PartialEq for LanePosition
impl Eq for LanePosition
Auto Trait Implementations§
impl Freeze for LanePosition
impl RefUnwindSafe for LanePosition
impl !Send for LanePosition
impl !Sync for LanePosition
impl Unpin for LanePosition
impl UnwindSafe for LanePosition
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