Skip to content

Polygon Shape Class #2

@JRileyH

Description

@JRileyH

A Spacial class extension that accepts an array of points for its vertices and can be any arbitrary shape.

Creation should determine if the polygon is convex or concave and flag itself respectively for use with collision calculations.

Creation should determine if polygon edges intersect and throw an error if there is any twisting or internal overlap of edges.

Initial point array should be able to complete itself or adequately ignore the last point of its the same as the first.

Points that are extremely close together (by some configuration variable. Should be averaged together to save on collision calculations.

A point array that exceeds the length of some limit (by some configuration variable) should by reduced to that number by merging and averaging closest points (unless specified otherwise) to save on collision calculations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions