Rotate RF PCB shape about defined axis
Rotate Spiral Trace About Axis
Create and display a spiral trace.
trace = traceSpiral; show(trace)
Specify two points that define the axes of rotation.
pt1 = [0 0 0]; pt2 = [1 1 0];
Rotate the spiral trace by 45 degrees about the axis.
traceRot = rotate(trace,45,pt1,pt2);
Display the rotated shape. Set the camera line of sight to display in 3-D space.
angle — Angle of rotation
Angle of rotation, specified as a scalar in degrees.
45 rotates the shape around the axis by 45
axis1 — One point on axis of rotation
One point on the axis of rotation, specified as a three-element vector of Cartesian coordinates in meters.
[0 0 0]
axis2 — Second point on axis of rotation
Second point on the axis of rotation, specified as a three-element vectors
of Cartesian coordinates in meters.
axis2 must be
[0 0 1]