Rotate shape about y-axis by angle
Rotate Rectangle About Y-Axis
Create a rectangle shape.
r = antenna.Rectangle; show(r) axis equal
Rotate the rectangle at 45 degrees about the Y-axis.
r1 = rotateY(r,45)
r1 = Rectangle with properties: Name: 'myrectangle' Center: [0 0] Length: 1 Width: 2 NumPoints: 2
show(r1) axis equal
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.
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