Struct bezier_rs::ProjectionOptions
source · pub struct ProjectionOptions {
pub lut_size: usize,
pub convergence_epsilon: f64,
pub convergence_limit: usize,
pub iteration_limit: usize,
}
Expand description
Struct to represent optional parameters that can be passed to the project
function.
Fields§
§lut_size: usize
Size of the lookup table for the initial passthrough. The default value is 20
.
convergence_epsilon: f64
Difference used between floating point numbers to be considered as equal. The default value is 0.0001
convergence_limit: usize
Controls the number of iterations needed to consider that minimum distance to have converged. The default value is 3
.
iteration_limit: usize
Controls the maximum total number of iterations to be used. The default value is 10
.
Trait Implementations§
source§impl Clone for ProjectionOptions
impl Clone for ProjectionOptions
source§fn clone(&self) -> ProjectionOptions
fn clone(&self) -> ProjectionOptions
Returns a copy 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 Default for ProjectionOptions
impl Default for ProjectionOptions
impl Copy for ProjectionOptions
Auto Trait Implementations§
impl RefUnwindSafe for ProjectionOptions
impl Send for ProjectionOptions
impl Sync for ProjectionOptions
impl Unpin for ProjectionOptions
impl UnwindSafe for ProjectionOptions
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