Equivalent of glRotate in Matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
If you've used the old OpenGL (before shaders were introduced), you've seen the glRotate function, which automatically changes the modelview matrix so that all subsequent vertices drawn are rotated by it.
Is there an equivalent in Matlab?
I know that you can transform vectors / matrices yourself using your own rotation matrix, but I was interested in finding something that automatically transforms vertices that are about to be drawn with something like plot3 without permanently changing the data.
댓글 수: 0
답변 (1개)
Walter Roberson
2013년 6월 30일
You can insert a hgtransform as the parent of the objects to be rotated.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!