pub struct RouteSample {
pub position: Vec3,
pub direction: Vec3,
pub segment: usize,
pub distance: f64,
pub complete: bool,
}Expand description
Arc-distance sample from Route3::sample or Route3::sample_progress.
Fields§
§position: Vec3§direction: Vec3§segment: usize§distance: f64§complete: boolTrue only at the endpoint of an open route, including a zero-length one.
Trait Implementations§
Source§impl Clone for RouteSample
impl Clone for RouteSample
Source§fn clone(&self) -> RouteSample
fn clone(&self) -> RouteSample
Returns a duplicate 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 RouteSample
impl Debug for RouteSample
impl Copy for RouteSample
Auto Trait Implementations§
impl Freeze for RouteSample
impl RefUnwindSafe for RouteSample
impl Send for RouteSample
impl Sync for RouteSample
impl Unpin for RouteSample
impl UnwindSafe for RouteSample
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