Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9047 > unrolled thread

Rotating a point in 3D Sspace

Started by"ldries46" <bertus.dries@planet.nl>
First post2011-08-18 17:41 +0200
Last post2011-08-18 19:31 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.c++


Contents

  Rotating a point in 3D Sspace "ldries46" <bertus.dries@planet.nl> - 2011-08-18 17:41 +0200
    Re: Rotating a point in 3D Sspace Fred <fred.l.kleinschmidt@boeing.com> - 2011-08-18 09:07 -0700
    Re: Rotating a point in 3D Sspace jt@toerring.de (Jens Thoms Toerring) - 2011-08-18 19:31 +0000

#9047 — Rotating a point in 3D Sspace

From"ldries46" <bertus.dries@planet.nl>
Date2011-08-18 17:41 +0200
SubjectRotating a point in 3D Sspace
Message-ID<4e4d3232$0$2772$703f8584@news.kpn.nl>
Is there somewhere a standard routine for rotating a point in 3D stace in 
the two directionsgiven the angles Theta and phi

please give a link

L. Dries 

[toc] | [next] | [standalone]


#9049

FromFred <fred.l.kleinschmidt@boeing.com>
Date2011-08-18 09:07 -0700
Message-ID<f6d53ba6-5e14-4193-a7e8-d698811c58ed@v2g2000vba.googlegroups.com>
In reply to#9047
On Aug 18, 8:41 am, "ldries46" <bertus.dr...@planet.nl> wrote:
> Is there somewhere a standard routine for rotating a point in 3D stace in
> the two directionsgiven the angles Theta and phi
>
> please give a link
>
> L. Dries

Try Google: 3d rotation

You'll get about 24,000,000 hits, any of which will help you

--
Fred K

[toc] | [prev] | [next] | [standalone]


#9054

Fromjt@toerring.de (Jens Thoms Toerring)
Date2011-08-18 19:31 +0000
Message-ID<9b57jlFiglU1@mid.uni-berlin.de>
In reply to#9047
ldries46 <bertus.dries@planet.nl> wrote:
> Is there somewhere a standard routine for rotating a point in 3D stace in 
> the two directionsgiven the angles Theta and phi

There isn't, already since there is no "point in 3D space"
defined in the standard. You could be talking about three
floating point values representing the "point" (in cartesian
spherical, cylindrical or even some kind of elliptical coor-
dinates etc.) or you may have some class that represents a
"point" in whatever way you deem to suit for your problem
best etc.

And then it's not clear what you mean by "rotation in the di-
rections given the angles theta and phi". Theta and phi are
normally used as the names of the two angles describing (to-
gether with the radius) the position of a point in spherical
coordinates. If you want to rotate the point by an angle you
must also tell which axis the rotation is to be done around,
just having an angle won't do. Phi and theta don't define di-
rections by themselves. It might be possible that you mean
by "rotation in the direction given by phi" a rotation around
the z-axis by the angle phi, and for theta a rotation around
the direction perpendicular to the plane defined by the z-axis
and the vector from the origin to the point under consideration.
Or you might be talking about Euler angles. But this is just
pure speculation...

Rotations around two axes also require the sequence the rota-
tions are to be done in to be specified since rotations are
non-commutative (i.e. if you turn something e.g. around the
z-axis by 90 degrees first and then around the x- axis also
by 90 degress you will end up at a different position than
when you do the second rotation first and only then the se-
cond).
                            Regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c++


csiph-web