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

Added common functions for polygon #50

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

Conversation

Nanobass
Copy link

@Nanobass Nanobass commented Feb 5, 2024

Added constructor that creates an empty polygon with n points, and common methods from other primitives (area, perimeter), as well as special methods that apply for polygons (is_convex).

added constructor, operator[], side, area, perimeter, side_count, is_convex and center functions
@OneLoneCoder OneLoneCoder added the discussion Has a discussion page label Feb 5, 2024
@OneLoneCoder
Copy link
Owner

Thanks! Before fully jumping on the first polygon implementation PR, I've added a discussion page so we can flesh out the details of this fundamental type, and understand the implications of choosing the structure of such a fundamental, well, structure. Please see #59

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

Successfully merging this pull request may close these issues.

2 participants