Myles
Posts:
11
Registered:
6/14/12
|
|
Reposition 3D plane slice
Posted:
Jun 14, 2012 6:15 PM
|
|
"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?
|
|