pub struct BoidsConfig { /* private fields */ }Expand description
Flocking weights and neighborhood radii for BoidsFlockSolver.
Implementations§
Source§impl BoidsConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl BoidsConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_perception_radius(&self) -> f32
pub fn get_mut_perception_radius(&mut self) -> &mut f32
pub fn set_perception_radius(&mut self, val: f32) -> &mut Self
pub fn get_separation_radius(&self) -> f32
pub fn get_mut_separation_radius(&mut self) -> &mut f32
pub fn set_separation_radius(&mut self, val: f32) -> &mut Self
pub fn get_separation_weight(&self) -> f32
pub fn get_mut_separation_weight(&mut self) -> &mut f32
pub fn set_separation_weight(&mut self, val: f32) -> &mut Self
pub fn get_alignment_weight(&self) -> f32
pub fn get_mut_alignment_weight(&mut self) -> &mut f32
pub fn set_alignment_weight(&mut self, val: f32) -> &mut Self
pub fn get_cohesion_weight(&self) -> f32
pub fn get_mut_cohesion_weight(&mut self) -> &mut f32
pub fn set_cohesion_weight(&mut self, val: f32) -> &mut Self
pub fn get_obstacle_weight(&self) -> f32
pub fn get_mut_obstacle_weight(&mut self) -> &mut f32
pub fn set_obstacle_weight(&mut self, val: f32) -> &mut Self
pub fn get_wander_weight(&self) -> f32
pub fn get_mut_wander_weight(&mut self) -> &mut f32
pub fn set_wander_weight(&mut self, val: f32) -> &mut Self
pub fn get_goal_weight(&self) -> f32
pub fn get_mut_goal_weight(&mut self) -> &mut f32
pub fn set_goal_weight(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for BoidsConfig
impl Clone for BoidsConfig
impl Copy for BoidsConfig
Source§impl Debug for BoidsConfig
impl Debug for BoidsConfig
Source§impl Default for BoidsConfig
Default balanced weights and neighborhood radii for BoidsConfig.
impl Default for BoidsConfig
Default balanced weights and neighborhood radii for BoidsConfig.
Source§impl PartialEq for BoidsConfig
impl PartialEq for BoidsConfig
impl StructuralPartialEq for BoidsConfig
Auto Trait Implementations§
impl Forget for BoidsConfig
impl Freeze for BoidsConfig
impl Move for BoidsConfig
impl RefUnwindSafe for BoidsConfig
impl Send for BoidsConfig
impl Sync for BoidsConfig
impl Unpin for BoidsConfig
impl UnsafeUnpin for BoidsConfig
impl UnwindSafe for BoidsConfig
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