pub struct RigidWalk { /* private fields */ }Implementations§
Source§impl RigidWalk
impl RigidWalk
Sourcepub fn new(
primary_angle: f64,
secondary_angle: f64,
angle: f64,
displacement: f64,
offset: f64,
) -> RigidWalk
pub fn new( primary_angle: f64, secondary_angle: f64, angle: f64, displacement: f64, offset: f64, ) -> RigidWalk
angle angle of direction to acheive in radian
displacement is the displacement to achieve.
offset is maximum distance relative to main line.
pub fn total_distance(&self) -> f64
Sourcepub fn iter_full(&self, start_primary: bool) -> RigidWalkIterFull<'_> ⓘ
pub fn iter_full(&self, start_primary: bool) -> RigidWalkIterFull<'_> ⓘ
start_primary if you wanted to start algorithm at primary angle
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RigidWalk
impl RefUnwindSafe for RigidWalk
impl Send for RigidWalk
impl Sync for RigidWalk
impl Unpin for RigidWalk
impl UnwindSafe for RigidWalk
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