pub struct DataRemap {
pub input: [f32; 2],
pub output: [f32; 2],
}Expand description
A linear map from input to output, clamped to output.
Fields§
§input: [f32; 2]The input values mapped to output[0] and output[1]; distinct and finite.
output: [f32; 2]The output range; finite.
Implementations§
Trait Implementations§
impl Copy for DataRemap
Source§impl<'de> Deserialize<'de> for DataRemap
impl<'de> Deserialize<'de> for DataRemap
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
impl StructuralPartialEq for DataRemap
Auto Trait Implementations§
impl Forget for DataRemap
impl Freeze for DataRemap
impl Move for DataRemap
impl RefUnwindSafe for DataRemap
impl Send for DataRemap
impl Sync for DataRemap
impl Unpin for DataRemap
impl UnsafeUnpin for DataRemap
impl UnwindSafe for DataRemap
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