You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all Xfig objects can only be rotated along a user-selected point by a preset degree either clockwise or counterclockwise (-90, -180, 90 and 180,). Figure 1 illustrates rotation of a rectangle by 90 degrees. However, angles other than the preset four values are not supported. In fact, when a user attempts to enter any unsupported angle through the angle setting window shown in Figure 2, Xfig will disable this feature by ignoring it.
Expected Behavior
Enhance the current rotation feature by adding support for any angles instead of the predefined 90 and 180 degrees, e.g., 30 or 345 degrees. Your solution could accept any value from 0 to 360, -360 to 360, or -infinity to +infinity, as long as your Xfig accepts values outside 90 and 180 degrees your solution is correct. Once the user enters the angle in the angle setting window shown in Figure 2, the object should rotate by the specified degree, rather than having this feature disabled.
The text was updated successfully, but these errors were encountered:
Current Behavior
Currently, all Xfig objects can only be rotated along a user-selected point by a preset degree either clockwise or counterclockwise (-90, -180, 90 and 180,). Figure 1 illustrates rotation of a rectangle by 90 degrees. However, angles other than the preset four values are not supported. In fact, when a user attempts to enter any unsupported angle through the angle setting window shown in Figure 2, Xfig will disable this feature by ignoring it.
Expected Behavior
Enhance the current rotation feature by adding support for any angles instead of the predefined 90 and 180 degrees, e.g., 30 or 345 degrees. Your solution could accept any value from 0 to 360, -360 to 360, or -infinity to +infinity, as long as your Xfig accepts values outside 90 and 180 degrees your solution is correct. Once the user enters the angle in the angle setting window shown in Figure 2, the object should rotate by the specified degree, rather than having this feature disabled.
The text was updated successfully, but these errors were encountered: