Ctrl+K

PolygonError

Declaration

public sealed enum tainicom.Aether.Physics2D.Common.PolygonError

Members

Name Value Description
NoError 0 There were no errors in the polygon
InvalidAmountOfVertices 1 Polygon must have between 3 and Settings.MaxPolygonVertices vertices.
NotSimple 2 Polygon must be simple. This means no overlapping edges.
NotCounterClockWise 3 Polygon must have a counter clockwise winding.
NotConvex 4 The polygon is concave, it needs to be convex.
AreaTooSmall 5 Polygon area is too small.
SideTooSmall 6 The polygon has a side that is too short.

Fields

NoError static

There were no errors in the polygon

PolygonError NoError = 0

InvalidAmountOfVertices static

Polygon must have between 3 and Settings.MaxPolygonVertices vertices.

PolygonError InvalidAmountOfVertices = 1

NotSimple static

Polygon must be simple. This means no overlapping edges.

PolygonError NotSimple = 2

NotCounterClockWise static

Polygon must have a counter clockwise winding.

PolygonError NotCounterClockWise = 3

NotConvex static

The polygon is concave, it needs to be convex.

PolygonError NotConvex = 4

AreaTooSmall static

Polygon area is too small.

PolygonError AreaTooSmall = 5

SideTooSmall static

The polygon has a side that is too short.

PolygonError SideTooSmall = 6