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

Add furthestTime #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add furthestTime #5

wants to merge 2 commits into from

Conversation

jabiertxof
Copy link

hackfest 2016

@@ -126,6 +126,10 @@ Coord Circle::nearestTime(Point const &p) const {
return timeAt(p);
}

Coord Circle::furthestTime(Point const &p) const {
return timeAt(p) + rad_from_deg(180);
Copy link
Contributor

@tweenk tweenk Jun 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can return anything between 0 and 3 * M_PI. It should return something within the range [0, 2 * M_PI) instead - the class Angle can be used for this.

@jabiertxof
Copy link
Author

Thanks @tweenk for the review! I Just ask for help into the 2geom mailing list about the eliptical arc part. all the rest is done. Also I added two missing toys for furthest time

tweenk pushed a commit that referenced this pull request Jun 19, 2018
@tweenk tweenk force-pushed the master branch 2 times, most recently from 599dbab to ba767e8 Compare March 10, 2019 18:35
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.

2 participants