Rotate shape about axis by angle
Create a rectangle shape.
r = antenna.Rectangle; show(r) axis equal
Rotate the rectangle at 45 degrees about the Z-axis.
r1 = rotate(r,45,[0 0 0],[0 0 1])
r1 = Rectangle with properties: Name: 'myrectangle' Center: [0 0] Length: 1 Width: 2 NumPoints: 2
shape — Shape created using shape objects
2-D and 3-D geometric shapes created using shape objects in Custom 2-D and 3-D Antenna catalog.
axisPoint1,axisPoint2 — Axis of rotation
two three-element vector of Cartesian coordinates in meters
Axis of rotation defined as a line joining two points, specified as two unique three-element vectors of Cartesian coordinates in meters.
[0 0 0], [0 0 1]
angle — Angle of rotation
Angle of rotation, specified as a scalar in degrees.
c — Resultant shape
Resultant shape obtained after the rotation operation on the input shape, returned as a shape object.
Introduced in R2017a