Skip to content

Commit

Permalink
Merge pull request #72 from bgamari/fix-rotate3
Browse files Browse the repository at this point in the history
Rotate3: Fix flipped sin/cos
  • Loading branch information
colah committed Nov 18, 2012
2 parents fdb8143 + 3761302 commit 42a97fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Graphics/Implicit/ObjectUtil/GetImplicit3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ getImplicit3 (Rotate3 (yz, xz, xy) symbObj) =
let
obj = getImplicit3 symbObj
rotateYZ :: -> (ℝ3 -> ) -> (ℝ3 -> )
rotateYZ θ obj = \(x,y,z) -> obj ( x, cos(θ)*z - sin(θ)*y, cos(θ)*y + sin(θ)*z)
rotateYZ θ obj = \(x,y,z) -> obj ( x, sin(θ)*z - cos(θ)*y, sin(θ)*y + cos(θ)*z)
rotateXZ :: -> (ℝ3 -> ) -> (ℝ3 -> )
rotateXZ θ obj = \(x,y,z) -> obj ( cos(θ)*x + sin(θ)*z, y, cos(θ)*z - sin(θ)*x)
rotateXY :: -> (ℝ3 -> ) -> (ℝ3 -> )
Expand Down

0 comments on commit 42a97fc

Please sign in to comment.