Calculate the new position of a point after rotating

조회 수: 1 (최근 30일)
Morad
Morad 2023년 6월 12일
편집: Matt J 2023년 6월 14일
how we can Calculate the new position of a point after rotating it about theta degrees around a line in 3d space
  댓글 수: 2
Aakash
Aakash 2023년 6월 12일
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 2023년 6월 14일
+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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2023년 6월 14일
편집: Matt J 2023년 6월 14일
You can use this FEX download, which requires no toolboxes,
See, in particular SYNTAX 3,
newPosition = AxelRot(oldPosition, degrees, axisDirection, axisOrigin)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by