Kevin Lee 6 月之前
父節點
當前提交
e4c3826e08
共有 2 個文件被更改,包括 3 次插入3 次删除
  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