Ver Fonte

Cleanup

Kevin Lee há 5 meses atrás
pai
commit
e4c3826e08
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      src/ezcad/objects/mod.rs
  2. 1 1
      src/main.rs

+ 2 - 2
src/ezcad/objects/mod.rs

@@ -351,8 +351,8 @@ impl ObjectModifier {
         let corners: Vec<Point> = corners
             .iter()
             .map(|pt| {
-                // TODO: WTF is this and why is it necessary?
-                // Seems to be correct as far as calculation of correct origin..
+                // Skewing along two axis is differenet from rotation, but how to handle
+                // both skewing of an axis combined with a rotation?
                 if self.modifiers.x_skew == 0.0 || self.modifiers.y_skew == 0.0 {
                     Point {
                         x: pt.x + pt.y * self.modifiers.x_skew,

+ 1 - 1
src/main.rs

@@ -222,7 +222,7 @@ fn main() {
 
             // Process object query
             args.object.map(|obj_range| {
-                warn!("Object origin/width/height values may be incorrect if skewed or rotated");
+                warn!("Object origin, width, and height values may be incorrect if object is skewed or rotated");
 
                 let layer_index: usize = args.object_layer.unwrap_or(0);
                 let layer: &Layer = file