Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Reposition 3D plane slice
Replies: 16   Last Post: Jun 15, 2012 5:22 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Myles

Posts: 11
Registered: 6/14/12
Reposition 3D plane slice
Posted: Jun 14, 2012 6:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <jrdmnj$hu6$1@newscl01ah.mathworks.com>...
> "Myles" wrote in message <jrdlnn$dp7$1@newscl01ah.mathworks.com>...
> >
> > So anyways,
> >
> > Ztilt = [0.1682 0.3477 -0.9224] <--- this is normalized of [16.7243, 34.5791,-91.7416]
> > u = cross(Ztilt, [0 0 1])
> > u = [0.3477 - 0.1682 0]
> > NewPoint = AxelRot(Ztilt', deg, u, [0 0 0])
> > NewPoint = [0.3102; 0.6414; -0.7017]

> =============
>
> Try this formula for deg instead
>
> deg=atan2(norm(u),Ztilt(3))*180/pi


Unfortunately that didn't work either. But you're thinking that it is the angle that might be wrong?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.