Skip to main content
20-Turquoise
August 28, 2022
Solved

Rotate a quadrilateral in 3-D ?

  • August 28, 2022
  • 3 replies
  • 4415 views

Hi Everyone,
From the following :

Rotate 3-D (1).PNG

How to Rotate a quadrilateral and Plot its image on the Graph ?
Thanks in advance.
Best Regards.

 

Best answer by ttokoro

3D data format for MC15 and Prime is changed.  Prime 8 sheet attached.

 

 

image.pngimage.pngimage.pngimage.pngimage.png

image.png

3 replies

25-Diamond I
August 28, 2022

A rotation around the z-axis can be accomplished by a multiplication with

Werner_E_0-1661679233013.png

For example

Werner_E_1-1661679249407.png

See also   

https://en.wikipedia.org/wiki/Rotation_matrix#Basic_rotations

or maybe (?)

https://zh.wikipedia.org/wiki/%E6%97%8B%E8%BD%AC%E7%9F%A9%E9%98%B5#%E6%97%8B%E8%BD%AC

21-Topaz II
August 28, 2022

Hi,

Rotations in 3D can also be carried out using Quaternions.

An excellent worksheet was posted on this forum that details Quaternions, and I include it here.

How to use the functions in the worksheet to do the rotation of the quadrilateral is also included.

Capture.JPG

 

I also have Prime 8 versions of the sheets if anyone wants them.

Cheers

Terry

 

 

 

lvl10720-TurquoiseAuthor
20-Turquoise
August 30, 2022

I greately appreciate your time and help with your *.xmcd attacted. I don't the reason for as the following:

Rotate 3-D (4).PNG

"This variable is undefined" was shown.

Thanks again.

Loi.

21-Topaz II
August 30, 2022

Hi,

File location for the referenced sheet at the top of the page must be adjusted to suit your system where the file is located.

Capture.JPG

Right click on the little arrow and you get this pop up menu and select properties

Capture2.JPG

This pops up a tabbed dialog box go to Reference Tab

Capture3.JPG

Here you can browse button to the location of the file "220828-Quaternions.xmcd" on your system and OK.

Cheers

Terry

ttokoro
21-Topaz I
21-Topaz I
August 29, 2022

image.pngimage.pngimage.png

image.png

t.t.
lvl10720-TurquoiseAuthor
20-Turquoise
August 29, 2022

Thank all of you, Werner, Terry, and Tokoro. 😊😊😊@ttokoro Brief of explanation, say : Screen-shot of program functions... please. Query still exists, say : how to mirror a quadrilateral about the plane of X-axis_Y-axis ? (Screen-shot of program functions... please.)

Best, Best Regards.

Loi.

25-Diamond I
August 29, 2022

how to mirror a quadrilateral about the plane of X-axis_Y-axis ?

To mirror points at the xy-plane you simply change the sign of the z-coordinate for each point!