Jump to content

Rotation/Movement of triangle


Recommended Posts

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

Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

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.