Start working on a transform editor

This commit is contained in:
2025-02-23 18:02:35 -05:00
parent ceb772bbec
commit 38f383a0b2
7 changed files with 137 additions and 6 deletions

View File

@ -158,15 +158,24 @@ impl ThreadState {
#[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
#[repr(C)]
pub struct Coefs {
a: f32,
b: f32,
c: f32,
d: f32,
e: f32,
f: f32,
pub a: f32,
pub b: f32,
pub c: f32,
pub d: f32,
pub e: f32,
pub f: f32,
}
impl Coefs {
pub const IDENTITY: Coefs = Coefs {
a: 1.0,
b: 0.0,
c: 0.0,
d: 0.0,
e: 1.0,
f: 0.0
};
pub fn new(a: f32, b: f32, c: f32, d: f32, e: f32, f: f32) -> Self {
Self { a, b, c, d, e, f }
}