-
Notifications
You must be signed in to change notification settings - Fork 23
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
functions getDirectionOnCurve for Circle and Ellipse #494
functions getDirectionOnCurve for Circle and Ellipse #494
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely goes in the correct direction (pun intended)!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need any support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: is the tangent calculated as going clock-wise or counter-clock-wise for the circle and ellipse?
I guess it is going counter-clock-wise since for circle |
Perhaps this might help you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything else planned for this PR?
I guess this PR is ready, I am not planning anything else for this PR. Unless I should already refactor IfcCircle and IfcEllipse functions accordingly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One function takes ellipse->Position
into account, the other doesn't. Intentional?
Suggestion (DRY): Calculate angle from the CartesianPoint and call the other overload.
New PR, please. |
No it wasn't intentional, I guess both functions should use ellipse->Position. But I will do as you suggested and use second function to make both calculations. |
I guess with ad45e76 PR is ready to be merged |
Looks fine to me. |
Fixes #495
Functions