Skip to content

Commit

Permalink
update Polygon to v1.4
Browse files Browse the repository at this point in the history
update Polygon to version 1.4:

allow constructor to take vertex positions from initializer list,

allow a Polygon to be constructed from another polygon (constructor or assigned),

allow direct access to a Polygon's vertex,

allow ability to switch direction of vertices,

allow ability to set colour and texture co-ordinates for each vertex,

allow the usage of a texture,

adds ability to change the triangle limit,

adds automatic wireframe,

adds ability to get information such as its perimeter or area,

adds a point-in-polygon test,

adds local and global bounds,

adds ability to get "centroid" and "centre of mass" (different things),

allows the exporting of vertex positions or wireframe vertices,

allow holes.
  • Loading branch information
Hapaxia committed Jan 23, 2025
1 parent 21a8b71 commit 8a3718f
Show file tree
Hide file tree
Showing 2 changed files with 860 additions and 193 deletions.
Loading

0 comments on commit 8a3718f

Please sign in to comment.