pub struct GradientCartographer<N> {
pub directions: u64,
pub goal_node: N,
pub init_step_size: f64,
pub is_space_available_fn: fn(&N) -> bool,
pub make_node_fn: fn(f64, f64) -> N,
pub start_node: N,
}Expand description
Gradient cartographer for continuous space. The adjacent nodes are spaced farther apart as you move away from the starting point.
Fields§
§directions: u64§goal_node: N§init_step_size: f64§is_space_available_fn: fn(&N) -> bool§make_node_fn: fn(f64, f64) -> N§start_node: NTrait Implementations§
Source§impl<N> Cartographer<N> for GradientCartographer<N>where
N: PointXY,
impl<N> Cartographer<N> for GradientCartographer<N>where
N: PointXY,
Auto Trait Implementations§
impl<N> Freeze for GradientCartographer<N>where
N: Freeze,
impl<N> RefUnwindSafe for GradientCartographer<N>where
N: RefUnwindSafe,
impl<N> Send for GradientCartographer<N>where
N: Send,
impl<N> Sync for GradientCartographer<N>where
N: Sync,
impl<N> Unpin for GradientCartographer<N>where
N: Unpin,
impl<N> UnwindSafe for GradientCartographer<N>where
N: UnwindSafe,
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