Calculate the new position of a point after rotating

1 Ansicht (letzte 30 Tage)
Morad
Morad am 12 Jun. 2023
Bearbeitet: Matt J am 14 Jun. 2023
how we can Calculate the new position of a point after rotating it about theta degrees around a line in 3d space
  2 Kommentare
Aakash
Aakash am 12 Jun. 2023
You can refer to this rotatepoint function from matlab documentation for your query.
For examples and more details on the concept and math behind quaternions you can refer to this link
Akira Agata
Akira Agata am 14 Jun. 2023
+1
If the Automated Driving Toolbox is not available in your environment, please use makehgtform function to create 4-by-4 transform matrix and apply to the original point coordinates.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 14 Jun. 2023
Bearbeitet: Matt J am 14 Jun. 2023
You can use this FEX download, which requires no toolboxes,
See, in particular SYNTAX 3,
newPosition = AxelRot(oldPosition, degrees, axisDirection, axisOrigin)

Kategorien

Mehr zu 3-D Scene Control finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by