Skip to content

Commit

Permalink
Fix Rotate2 bounding box issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
colah committed Aug 10, 2012
1 parent 216e101 commit fb6801b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Graphics/Implicit/ObjectUtil/GetBox2.hs
Expand Up @@ -77,7 +77,7 @@ getBox2 (Scale2 s symbObj) =
getBox2 (Rotate2 θ symbObj) =
let
((x1,y1),(x2,y2)) = getBox2 symbObj
rotate (x,y) = ( cos(θ)*x + sin(θ)*y, cos(θ)*y - sin(θ)*x)
rotate (x,y) = ( cos(θ)*x - sin(θ)*y, sin(θ)*x + cos(θ)*y)
(xa, ya) = rotate (x1, y1)
(xb, yb) = rotate (x1, y2)
(xc, yc) = rotate (x2, y1)
Expand Down

0 comments on commit fb6801b

Please sign in to comment.