Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Rotation #1 #2

Open
Da-vid21 opened this issue Oct 29, 2021 · 0 comments
Open

Enhanced Rotation #1 #2

Da-vid21 opened this issue Oct 29, 2021 · 0 comments

Comments

@Da-vid21
Copy link
Owner

Da-vid21 commented Oct 29, 2021

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.

Rotation

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.

ScreenRecorderProject3

@Da-vid21 Da-vid21 changed the title Enhanced Rotation Enhanced Rotation #1 Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant