Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
fix plane translation
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Aug 9, 2019
1 parent c5937f0 commit c9e7beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layouting/transformation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ function transform!(scene::Transformable, x::Tuple{Symbol, <: Number})
rotate!(scene, Vec3f0(1, 0, 0), 0.5pi)
translate!(scene, 0, dimval, 0)
else #yz plane
q1 = qrotation(Vec3f0(1, 0, 0), -0.5pi)
q2 = qrotation(Vec3f0(0, 0, 1), 0.5pi)
rotate!(scene, q2 * q1)
r1 = qrotation(Vec3f0(0, 1, 0), 0.5pi)
r2 = qrotation(Vec3f0(1, 0, 0), 0.5pi)
rotate!(scene, r2 * r1)
translate!(scene, dimval, 0, 0)
end
scene
Expand Down

0 comments on commit c9e7beb

Please sign in to comment.