Jump to content

Rotation/Movement of triangle

Featured Replies

Hello All,

I have 2 identical triangles in different places and need to know the rotation and movement to get from triangle #1 to triangle #2. There is no perpendicular angle in that triangle(s).

the rotation has to be in quaternions. The movement in x=x+/-n y=y+/-n z=z+/-n

I am coding in Java3d but any other language would work for me to understand how to do that.

Any help is much appreciated!

Thanks, Duesentrieb

  • 4 months later...

"What I would do is first determine the translation necessary to move one vertex of the first triangle to the corresponding vertex of the second triangle.  Then determine the rotation necessary to map the other two vertices to their corresponding vertices.  The translation and rotation can be written as a single matrix multiplication using "quaternions".

Edited by Country Boy

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.