pub struct LaneSRange { /* private fields */ }
Expand description
Directed longitudinal range of a specific Lane, identified by a LaneId.
Wrapper around C++ implementation maliput::api::LaneSRange
.
Implementations§
Source§impl LaneSRange
impl LaneSRange
Sourcepub fn new(lane_id: &String, s_range: &SRange) -> LaneSRange
pub fn new(lane_id: &String, s_range: &SRange) -> LaneSRange
Create a new LaneSRange
with the given lane_id
and s_range
.
Sourcepub fn intersects(&self, lane_s_range: &LaneSRange, tolerance: f64) -> bool
pub fn intersects(&self, lane_s_range: &LaneSRange, tolerance: f64) -> bool
Determines whether this LaneSRange intersects with lane_s_range
.
Sourcepub fn contains(&self, lane_s_range: &LaneSRange, tolerance: f64) -> bool
pub fn contains(&self, lane_s_range: &LaneSRange, tolerance: f64) -> bool
Determines whether this LaneSRange contains lane_s_range
.
Sourcepub fn get_intersection(
&self,
lane_s_range: &LaneSRange,
tolerance: f64,
) -> Option<LaneSRange>
pub fn get_intersection( &self, lane_s_range: &LaneSRange, tolerance: f64, ) -> Option<LaneSRange>
Get the intersection of this LaneSRange with lane_s_range
.
Auto Trait Implementations§
impl Freeze for LaneSRange
impl RefUnwindSafe for LaneSRange
impl !Send for LaneSRange
impl !Sync for LaneSRange
impl Unpin for LaneSRange
impl UnwindSafe for LaneSRange
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