Need Math to Rotate XYZ Point Around A-B Rotary Axes

4 次查看(过去 30 天)
I need help with some CNC Machine Tool logic that has to do with Coordinate Rotation. I have a known XYZ Point that I need to rotate around A(First Rotary) and B(Second Rotary) angles. The A-Axis is Parallel to "Z" and the B-Axis is Parallel to the "Y" Axis.
My logic for "Z" shown here works correctly to give me the pre-rotated Z-Axis value.
Z=(Z*(cos(Rotary B Angle)))-(X*(sin(Rotary B Angle))))
I can't come up with the correct formula for the same X-Y values.
Example:
This is a known value after Coordinate Rotate: X-8.8103 Y6.473 Z4.6117 A= -90 B= -45
I need a formula for the XYZ value BEFORE Coordinate Rotation which is: X6.473 Y9.4908 Z-2.96887
The Z Formula above works to properly convert Z4.6117 to Z-2.96887. I need help with a formula to do the same conversion for X-Y.
The software I am using to write the formula is a proprietary CAM Software with limited Math Operators such as ACS, ATN, COS, SIN, EXP, SQR, SQRT, TAN
  2 个评论
Matt J
Matt J 2020-1-22
The software I am using to write the formula is a proprietary CAM Software with limited Math Operators such as ACS, ATN, COS, SIN, EXP, SQR, SQRT, TAN
Does that mean that you are not working in Matlab? If so, this is probably not the right forum.
Matt J
Matt J 2020-1-22
Randy's comment moved here:
I am new to Matlab so I appologize for my question which was a plea for general Math help and not something that pertains only to working in Matlab. If you are a Moderator you can delete my non Matlab related question.

请先登录,再进行评论。

采纳的回答

Matt J
Matt J 2020-1-22
See Rodrigues' formula,
Also, though you are apparently not working in Matlab, you could use Matlab to verify your calculations using this FEX submission,

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by