pub struct Affine {
pub a: f32,
pub b: f32,
pub c: f32,
pub d: f32,
pub e: f32,
pub f: f32,
}Expand description
One map’s raw affine coefficients: x' = a·x + b·y + e, y' = c·x + d·y + f.
The output form: what recompose produces and what the GPU is handed.
It is also the form the curated tables are authored in, because published
IFS coefficients are quoted this way and a reviewer can check them against a
source. Nothing morphs or levers here — that all happens in IfsMap.
Fields§
§a: f32Linear part, row 0 column 0.
b: f32Linear part, row 0 column 1.
c: f32Linear part, row 1 column 0.
d: f32Linear part, row 1 column 1.
e: f32Translation in x — never enters contractivity (ADR-0075).
f: f32Translation in y — never enters contractivity (ADR-0075).
Trait Implementations§
impl Copy for Affine
impl StructuralPartialEq for Affine
Auto Trait Implementations§
impl Freeze for Affine
impl RefUnwindSafe for Affine
impl Send for Affine
impl Sync for Affine
impl Unpin for Affine
impl UnsafeUnpin for Affine
impl UnwindSafe for Affine
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