Notifications
Clear all
[Closed] maxscript math : find position from angle and distance
Sep 29, 2014 8:30 pm
Hi,
My math lost me there …
Let’s say I know a point3[x,y,z], azimuth in degree, elevation in degree, and distance (float).
How can I find the position coordinates of the result (point3) ?
Thanks
2 Replies
Sep 29, 2014 8:30 pm
you can do it of course using trigonometry but for me it’s easier to do it using matrices.
so… we have original position §
it makes matrix
tm = transMatrix p
rotate about Z to get azimuth (alpha):
preRotateZ tm alpha
rotate about Y to get elevation (beta):
preRotateY tm beta
and move on distance (d) along X
preTranslate tm [d,0,0]
the final position of the matrix =
tm.pos
Sep 29, 2014 8:30 pm
wow Denis !! It’s so simple, logic and clear, that’s even no fun lol !! many many thnaks !