pub struct PiecewiseLinearMapping {
pub point_param_values: Vec<c_float>,
pub point_positions: Option<Vec<c_float>>,
}
Expand description
Structure to define a piecewise linear mapping.
Fields§
§point_param_values: Vec<c_float>
Values in the parameter’s units for each point .
point_positions: Option<Vec<c_float>>
Positions along the control’s scale (e.g. dial angle) corresponding to each parameter value.
The range of this scale is arbitrary and all positions will be relative to the minimum and maximum values
(e.g. [0,1,3]
is equivalent to [1,2,4]
and [2,4,8]
).
If this array is None
, point_param_values
will be distributed with equal spacing.
Trait Implementations§
Source§impl Clone for PiecewiseLinearMapping
impl Clone for PiecewiseLinearMapping
Source§fn clone(&self) -> PiecewiseLinearMapping
fn clone(&self) -> PiecewiseLinearMapping
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 Debug for PiecewiseLinearMapping
impl Debug for PiecewiseLinearMapping
Source§impl PartialEq for PiecewiseLinearMapping
impl PartialEq for PiecewiseLinearMapping
impl StructuralPartialEq for PiecewiseLinearMapping
Auto Trait Implementations§
impl Freeze for PiecewiseLinearMapping
impl RefUnwindSafe for PiecewiseLinearMapping
impl Send for PiecewiseLinearMapping
impl Sync for PiecewiseLinearMapping
impl Unpin for PiecewiseLinearMapping
impl UnwindSafe for PiecewiseLinearMapping
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