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 orientation() method for curves and segments #1019

Open
zbynekstara opened this issue Dec 11, 2018 · 0 comments
Open

Add orientation() method for curves and segments #1019

zbynekstara opened this issue Dec 11, 2018 · 0 comments

Comments

@zbynekstara
Copy link
Contributor

Sometimes, it is useful to know whether a curve is oriented clockwise or counterclockwise. This method would look at the start point, end point, and control points of the curve, and return +1 if it is clockwise, -1 if it is anticlockwise, and 0 if it is neither (it is a straight line or a wavy curve). (The signs match a convention established by the Point.cross function.)

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