Skip to content

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