Post Reply 
(35S) Spherical coordinates <-> rectangular
05-05-2017, 06:34 PM
Post: #3
RE: (35s) Spherical coordinates <-> rectangular
To check that everything works well:

First, put your calculator in DEG mode, because the result depends on DEG or RAD.

Example for rect2sph(10, 20, 30):

Code:

10
ENTER
20
ENTER
30
XEQ S ENTER

should give the following values in the stack:
T: [10,20,30]
Z: 37.4166 (meters of distance)
Y: 63.4349 (degrees of azimuth)
X: 53.3008 (degrees of elevation)


Example for sph2rect(5, 30°, 45°):

Code:

5
ENTER
30
ENTER
45
XEQ R ENTER

should give the following values in the stack:
T: [5,30,45]
Z: 3.0619 (x value in meters)
Y: 1.7678 (y value in meters)
X: 3.5355 (z value in meters)

Then, pressing XEQ S ENTER gives you again the initial spherical coordinates.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (35s) Spherical coordinates <-> rectangular - stephane - 05-05-2017 06:34 PM



User(s) browsing this thread: 1 Guest(s)