Re: 3d math

new topic     » goto parent     » topic index » view thread      » older message » newer message

--0-1754781795-1085581232=:17279

Dear Michael

If I understand you correctly, the problem you are having seems to be 
one of convention rather than of math. The 2 known angles each 
determine a position in the plane defined by their respective axes 
e.g. the xy angle defines a point in the x,y plane which gives you the 
x and y positions of your "destination point". As you rightly point 
out, 2 such angles are enough to define your "destination point".

To make this all consistent, you need to define the "hand" of your 
cartesian reference frame and of the rotations around its respective 
axes. A "right-handed" reference frame could be defined as follows ...

... drawn on a sheet of paper with x and y in the conventional 
orientations (x increases from left to right, y increases from the 
bottom of the page to the top) it will have z increasing into the page 
(by this convention, the corresponding "left-handed" reference frame 
has z increasing out of the page).

Once you have defined the hand of your reference frame, the rotations 
are defined around each axis with respect to the axial direction e.g. 
looking in the direction of increasing z, a positive angle of rotation 
in the xy plane corresponds to a counter-clockwise rotation around z.

The convention you choose is arbitrary if your 3D system is standalone 
and self-contained and if your calculations are not going to be 
compared with other 3D systems that may have their own conventions 
(such as e.g. GPS data). If you choose and maintain such a convention 
for your 3D system, you should get consistent answers for your 
calculations.

I hope I understood your problem correctly and that this is helpful.

Best

Gordon






"Michael J. Sabal" <guest at RapidEuphoria.com> wrote:



I'm hoping someone here can help, as 3d math has always confused me.

Given an origin point {0,0,0}, an unknown destination point {x,y,z}, a
known distance d, and 2 out of 3 angles xy, yz, xz known and validated,
how can the destination point {x,y,z} be determined?

In 2D math, this is very simple:
x = d * sin(rad(xy))
y = d * cos(rad(xy))

where xy is in degrees, rad(v)= (2 * PI * v) / 360, and 0 degrees is
defined as {0,y}.

I just don't know how to apply this to three dimensions to get a
consistently accurate solution.

TIA,
Michael J. Sabal





:::::::::: Gordon Webster ::::::::::
--0-1754781795-1085581232=:17279
Content-Type: text/html; charset=us-ascii

<DIV>Dear Michael</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I understand you correctly, the problem you are having seems 
to be one of convention rather than of math. The 2 known angles each 
determine a position in the plane defined by their respective axes 
e.g. the xy angle defines a point in the x,y plane which gives you the 
x and y positions of your "destination point". As you rightly point 
out, 2 such angles are enough to define your "destination point".</DIV>
<DIV>&nbsp;</DIV>
<DIV>To make this all consistent, you need to define the "hand" of 
your cartesian reference frame and of the rotations around its 
respective axes. A "right-handed" reference frame could be defined as 
follows ...</DIV>
<DIV>&nbsp;</DIV>
<DIV>... drawn on a sheet of paper with x and y in the conventional 
orientations (x increases from left to right, y increases from the 
bottom of the page to the top) it will have z increasing into the page 
(by this convention, the corresponding "left-handed"&nbsp;reference 
frame has z increasing out of the page).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Once you have defined the hand of your reference frame, the 
rotations are defined around each axis with respect to the axial 
direction e.g. looking in the direction of increasing z, a positive 
angle of rotation in the xy plane corresponds to a counter-clockwise 
rotation around z. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The convention you choose is arbitrary if your 3D system is 
standalone and self-contained and if your calculations are not going 
to be compared with other 3D systems that may have their own 
conventions (such as e.g. GPS data). If you choose and maintain such a 
convention for your 3D system, you should get consistent answers for 
your calculations.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I hope I understood your problem correctly and that this is 
helpful.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best</DIV>
<DIV>&nbsp;</DIV>
<DIV>Gordon</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>"Michael J. Sabal" 
&lt;guest at RapidEuphoria.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="BORDER-LEFT: #1010ff 2px solid; 
MARGIN-LEFT: 5px; PADDING-LEFT: 5px">============ The Euphoria Mailing 
List ============ <BR><BR><BR>posted by: Michael J. Sabal <M_SABAL 
yahoo.com at><BR><BR>I'm hoping someone here can help, as 3d math has 
always confused me.<BR><BR>Given an origin point {0,0,0}, an unknown 
destination point {x,y,z}, a<BR>known distance d, and 2 out of 3 
angles xy, yz, xz known and validated,<BR>how can the destination 
point {x,y,z} be determined?<BR><BR>In 2D math, this is very 
simple:<BR>x = d * sin(rad(xy))<BR>y = d * cos(rad(xy))<BR><BR>where 
xy is in degrees, rad(v)= (2 * PI * v) / 360, and 0 degrees is 
<BR>defined as {0,y}.<BR><BR>I just don't know how to apply this to 
three dimensions to get a<BR>consistently accurate 
solution.<BR><BR>TIA,<BR>Michael J. 
Sabal<BR><BR>--^----------------------------------------------------------------<BR>This
email was sent to: gwalias-bb at yahoo.com<BR><BR>EASY UNSUBSCRIBE click 
here:
  http://topica.com/u/?b1dd66.b7HXOn.Z3dhbGlh<BR>Or send an email to: 
EUforum-unsubscribe at topica.com<BR><BR>For Topica's complete suite of 
email marketing solutions 
visit:<BR>http://www.topica.com/?p=TEXFOOTER<BR>--^----------------------------------------------------------------<BR></BLOCKQUOTE><BR><BR>::::::::::
Gordon Webster ::::::::::
--0-1754781795-1085581232=:17279--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu