h2d.col

..
Bounds

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

Cell

The resulting cell inside the Voronoi diagram.

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.

Delaunay

A Delaunay triangulation utility. See Delaunay.triangulate.

DelaunayTriangle

The resulting triangle of a Delaunay triangulation operation.

Diagram

The resulting diagram of the Voronoi.compute.

Edge

The resulting edge inside the Voronoi diagram.

Halfedge

The edge attached to a Voronoi Cell.

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.

Line

An infinite 2D line going through two specified Points.

Matrix

An affine 2D 2x3 matrix.

OffsetKind

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

PixelsCollider

An hxd.Pixels-based collider. Checks for pixel color value under point to be above the cutoff value.

Point

PointImpl

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.

Polynomial

See Polynomial.regress.

Ray

A raycast from the given position in a specified direction.

RoundRect

A Collider representing the rectangle with the rounded edges, forming a 2D capsule.

Segment

A 2D line segment.

Segments

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

Triangle

A simple triangle collider.

Voronoi

A Steven Fortune's algorithm to compute Voronoi diagram from given set of Points and a bounding box.