pub struct Scale { /* private fields */ }Expand description
A 3-axis scale factor (X/Y/Z) — a dimensionless multiplier per axis,
not a size in metres. Its one wire user is the water normal-map
“Reflection Wavelet Scale” (the viewer’s normal_scale: three per-axis
multipliers applied to the wavelet normal-map sampling). A scale is not a
position or a direction (it has no origin and need not be a unit vector), so
it gets its own type.
Implementations§
Trait Implementations§
impl Copy for Scale
Source§impl<'de> Deserialize<'de> for Scale
impl<'de> Deserialize<'de> for Scale
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 Scale
Auto Trait Implementations§
impl Freeze for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnsafeUnpin for Scale
impl UnwindSafe for Scale
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