Rotation from 4 points

Jose Marin <[email protected]>
Newsgroups gmane.games.devel.algorithms
Message-ID <[email protected]>
Hi,

I'm trying to find the pitch, yaw and roll from a group of four points, but just can't do it wright!

The points are the corners of a box..

C
 \
  A--D
 /
B


For a unit box in the origin aligned with the XYZ axis, these are the coordinates of the points:

A(0, 0, 0)
B(0, 0, 1)
C(0, 1, 0)
D(1, 0, 0)


Well, the box may be at any rotation and position, but it's easy to get the points.

How to extract one of these informations:

1 - A quaternion representing the rotation
2 - The pitch, yaw and roll values or
3 - The angles for the rotated axis


Thank you!


Jose




      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
GDAlgorithms-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.