CAD/CAM: Geometric Description (Rotation About An Arbitrary Axis)
CAD/CAM: Geometric Description (Rotation About An Arbitrary Axis)
CAD/CAM: Geometric Description (Rotation About An Arbitrary Axis)
A point P can be expressed in terms of (x,y) or rotated coordinate (x’,y’). They are
related by the transformation matrix.
x y
x’ cos sinθ
θ
y’ - cosθ
sinθ
Note that the same results can be obtained by rotating the point P in opposite direction
(i.e., -θ ) while keeping (x’,y’) coordinates aligned with (x,y) coordinates.
When the point P is rotated clockwise, the new coordinates can be obtained by the same
transformation matrix as the previous case. Note the rotation is positive in the right-hand
rule.
x y
x” cos sinθ
θ
y” - cosθ
sinθ
x y
x” cos -
θ sinθ
y” sinθ cosθ
Thus,
When this is arranged in proper form for CAD data handling taking the transpose of both
sides, it becomes
cos θ sin θ
{ x" y"} ={ x y}
− sin θ cos θ
Since the rotation matrix is defined about the origin of a coordinate, in order to use it we
must use the local coordinates with origin at the axis of rotation. Once we rotate it, we
have to transform it back to original coordinates. The transformation from one coordinate
to another in rectilinear fashion is nothing but the translation. Therefore, three
successive transformations are needed as:
[C]new = [C]old [T]1 [R] [T]2
where
1 0 0 cos θ sin θ 0 1 0 0
[T ]1 =
0 1 0, [ R ] =
− sin θ cos θ 0, [T ] 2 =
0 1 0
, and
− ∆x − ∆y 1
0 0 1
∆x ∆y 1
[C] is in the form of [x, y, 1].
Only difference in 3D is that there is a concatenation of three rotations about three axes
as:
1 0 0 0 1 0 0 0
0 1 0
0 0 1 0 0
[T ]1 = , [ R ] =[ R ] x [ R ] y [ R ] z , [T ] 2 =
0 0 1 0 0 0 1 0
− ∆x − ∆y − ∆z 1 ∆x ∆y ∆z 1
, and [C] is
in the form of [x, y, z, 1]. The rotational matrices about x, y, z-axis are given by