Enum tuix::ValueScaling [−]
pub enum ValueScaling {
Linear,
Power(f32),
Frequency,
}
Variants
Power(f32)
Tuple Fields of Power
0: f32
Implementations
impl ValueScaling
impl ValueScaling
pub fn normalized_to_value(&self, normalized: f32, min: f32, max: f32) -> f32
pub fn value_to_normalized(&self, value: f32, min: f32, max: f32) -> f32
Trait Implementations
impl Clone for ValueScaling
impl Clone for ValueScaling
pub fn clone(&self) -> ValueScaling
pub fn clone(&self) -> ValueScaling
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ValueScaling
impl Debug for ValueScaling
impl PartialEq<ValueScaling> for ValueScaling
impl PartialEq<ValueScaling> for ValueScaling
pub fn eq(&self, other: &ValueScaling) -> bool
pub fn eq(&self, other: &ValueScaling) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ValueScaling) -> bool
pub fn ne(&self, other: &ValueScaling) -> bool
This method tests for !=
.
impl Copy for ValueScaling
impl StructuralPartialEq for ValueScaling
Auto Trait Implementations
impl RefUnwindSafe for ValueScaling
impl Send for ValueScaling
impl Sync for ValueScaling
impl Unpin for ValueScaling
impl UnwindSafe for ValueScaling
Blanket Implementations
Mutably borrows from an owned value. Read more