First attempt at re-writing the transform editor

Still has issues with drag support, hover detection, but making progress
This commit is contained in:
2025-03-22 12:02:45 -04:00
parent 13ba4368aa
commit 0cddc9d9a1
7 changed files with 386 additions and 11 deletions

View File

@ -180,6 +180,10 @@ impl Coefs {
Self { a, b, c, d, e, f }
}
pub fn new_from_xml_order(a: f32, d: f32, b: f32, e: f32, c: f32, f: f32) -> Self {
Self { a, b, c, d, e, f }
}
pub fn apply(&self, point: glam::Vec2) -> glam::Vec2 {
vec2(
self.a * point.x + self.b * point.y + self.c,