pub struct MobilityProfile { /* private fields */ }Expand description
Geometry-independent mobility envelope used by route providers.
Implementations§
Source§impl MobilityProfile
impl MobilityProfile
Sourcepub fn try_new(
radius_metres: f64,
height_metres: f64,
maximum_step_metres: f64,
maximum_slope: f64,
) -> Result<Self, MetricRoutingError>
pub fn try_new( radius_metres: f64, height_metres: f64, maximum_step_metres: f64, maximum_slope: f64, ) -> Result<Self, MetricRoutingError>
Validates non-negative finite mobility dimensions.
Sourcepub fn radius_metres(&self) -> f64
pub fn radius_metres(&self) -> f64
Agent radius in metres.
Sourcepub fn height_metres(&self) -> f64
pub fn height_metres(&self) -> f64
Required clear height in metres.
Sourcepub fn maximum_step_metres(&self) -> f64
pub fn maximum_step_metres(&self) -> f64
Maximum traversable step in metres.
Sourcepub fn maximum_slope(&self) -> f64
pub fn maximum_slope(&self) -> f64
Maximum dimensionless slope ratio.
Trait Implementations§
Source§impl Clone for MobilityProfile
impl Clone for MobilityProfile
Source§fn clone(&self) -> MobilityProfile
fn clone(&self) -> MobilityProfile
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MobilityProfile
impl Debug for MobilityProfile
Source§impl PartialEq for MobilityProfile
impl PartialEq for MobilityProfile
impl Copy for MobilityProfile
impl StructuralPartialEq for MobilityProfile
Auto Trait Implementations§
impl Freeze for MobilityProfile
impl RefUnwindSafe for MobilityProfile
impl Send for MobilityProfile
impl Sync for MobilityProfile
impl Unpin for MobilityProfile
impl UnwindSafe for MobilityProfile
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