Rotation on 2 axis doesn't give expected result

Started by altair, March 05, 2014, 01:43:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: samdavo on March 12, 2014, 05:59:25 AM
prl, I don't want to waste your time - but here's what I really wanted to do ( and to ask you to help with).

I like the puzzle.  Let me think about about what is happening with real Global (as in earth globe) axes when we do these sort of manipulations.

prl

#91
By the way Sam, did you (and I) want to puzzle this one out in a separate topic.  Guy (altair) probably thinks you and I are lunartics.


Edit:

So I'm creating a sphere of the earth and I positioned a GLOBAL XYZ.  I have an arrow pointing to 40.7deg  Lat, -74 deg Long  (NY City).  I've also added a local xyz triad at the end of the arrow pointing to NY City.  You need to zoom in.  In that case, the x is pointing East, the z is pointing North, and y is vertical sky, (perpendicular to earth).

Now what are we trying to do?


Lar

#92
Quote from: samdavo on March 12, 2014, 05:59:25 AM
Suppose that crazy birdcage (that lands on New York) was called "birdcage",  (edit - how do I name it that ?)
...
then how do I write a macro that selects "birdcage", and then rotates it about global Z (to get the 43degN latitude of NY), and then about global Y (to get the 74degW) ?  refer jpeg.
...
PS back to birdcage for a moment, it should be possible to write a macro that asks you for your
a) latitude, and
b) longitude
Sam, to name something manually select it and enter a name in the info box...
   ...with a macro I think it is sys$(300)  ...note the $...

Change the viewing angle with these ("va" means view angle):

Xva=sys(205)
Yva=sys(206)
Zva=sys(207)

You can flip them to get the angles of the active window. If more than one window is open use the following before the lines above to get control of the mouse so you can make a window active

setpoint "Click in window to make active" 1
pointval x, y, z, 1   'change the variables if necessary


Sorry, I can't remember if you can enter longitude and latitude values in the rotation command or not (I know you can enter bearing).

Lar


Dr PR

Looks like you are talking about Great Circle routes. Get a copy of Nathaniel Bowdich's "American Practical Navigator." It is a tome on 3D geometry for navigation.

Phil
DesignCAD user since 1987

samdavo

thANKS prl, Lar and Phil.
prl - I much prefer your choice of axes than mine.
I agree that it could be another thread to advantage
Low priority and you've given me enough to have a good go at it.
thanks again.