First attempt at re-writing the transform editor
Still has issues with drag support, hover detection, but making progress
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user