-
Notifications
You must be signed in to change notification settings - Fork 37
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
Joincurve and extrema #336
Conversation
src/GShark/Core/Trigonometry.cs
Outdated
/// </summary> | ||
/// <param name="curves">The sets of curve to sort.</param> | ||
/// <returns>The set of curves sorted.</returns> | ||
public static List<NurbsCurve> QuickSortCurve(IList<NurbsCurve> curves) |
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.
Why in Trigonometry?
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.
Yeah I know.
I moved it into CurveHelpr
.
If we start to have more sorting algos in the future, we can call them into another class, or make this one even more generic.
What type of PR is this? (check all applicable)
Description
This PR adds a quick sort algo used by the
JoinCurve
to order the curves, and expose theExtrema
as a method into theNurbsCurve
.Related Tickets & Documents
This PR closes #331
This PR closes #335
Added tests?
Added to documentation?