pub struct RotationSearch { /* private fields */ }Expand description
Caller-controlled numerical search domain for coverage rotation intervals.
sample_step determines the narrowest interval the grid can discover.
Each detected transition is bisected to tolerance.
Implementations§
Source§impl RotationSearch
impl RotationSearch
Sourcepub fn new(
minimum: Angle,
maximum: Angle,
sample_step: Angle,
tolerance: Angle,
) -> Result<Self>
pub fn new( minimum: Angle, maximum: Angle, sample_step: Angle, tolerance: Angle, ) -> Result<Self>
Construct a finite increasing search domain and positive resolutions.
§Errors
Returns Error::InvalidRotationSearch when the domain or resolutions
are invalid or require more than one million samples.
Sourcepub fn sample_step(self) -> Angle
pub fn sample_step(self) -> Angle
Grid spacing used to discover intervals.
Trait Implementations§
Source§impl Clone for RotationSearch
impl Clone for RotationSearch
Source§fn clone(&self) -> RotationSearch
fn clone(&self) -> RotationSearch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RotationSearch
Source§impl Debug for RotationSearch
impl Debug for RotationSearch
Source§impl<'de> Deserialize<'de> for RotationSearch
impl<'de> Deserialize<'de> for RotationSearch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RotationSearch
impl PartialEq for RotationSearch
Source§impl Serialize for RotationSearch
impl Serialize for RotationSearch
impl StructuralPartialEq for RotationSearch
Auto Trait Implementations§
impl Freeze for RotationSearch
impl RefUnwindSafe for RotationSearch
impl Send for RotationSearch
impl Sync for RotationSearch
impl Unpin for RotationSearch
impl UnsafeUnpin for RotationSearch
impl UnwindSafe for RotationSearch
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