h2d.col

..
Bounds

A 2D bounding box often used for determining Object bounding area.

Circle

The circular hitbox implementation of a 2D Collider.

Collider

A common interface for 2D Shapes to hit-test again the mouse or a specific point in space.

IBounds

An integer-based bounding box.

IPoint

An integer-based point.

IPolygon

An abstract around an Array of IPoints that define a polygonal shape that can be collision-tested against.

IPolygons

An abstract over an Array of IPolygon instances that define multiple polygonal shapes that can be collision-tested against.

Matrix

An affine 2D 2x3 matrix.

OffsetKind

The type of the edges when offsetting polygon with IPolygon.offset.

Point

A simple 2D position/vector container.

Polygon

An abstract around an Array of Points that define a polygonal shape that can be collision-tested against.

PolygonCollider

A Collider wrapper around Polygons to enable using those for hit-testing testing.

Polygons

An abstract over an Array of Polygon instances that define multiple polygonal shapes that can be collision-tested against.

Ray

A raycast from the given position in a specified direction.

Segment

A 2D line segment.

Segments

An abstract over the list of Segments. Alternative representation of a polygon.