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

fix(arcDegree) - Convert offsetAngle to radians to increase height correctly #116

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

ikedadenis
Copy link

The funcion Math.sin input is in radians, but the heightOffset was being calculated with degrees, which generated incorrect height values for some degrees (it coincided with correct heights at specific degrees, like arcDegree=360).

This PR sole change is to convert degrees into radians.

before (arcDegree=240º)
before-240

after (arcDegree=240º)
after-240

before (arcDegree=300º)
before-300

after (arcDegree=300º)
after-300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant