Module collider::geom [] [src]

Module containing geometry primitives.

Structs

CardMask

A map from Card to bool, typically used to specify allowed normal vector directions.

DirVec2

A 2-D vector that separates direction from length.

PlacedShape

Represents a shape with a position.

Shape

Represents a shape, without any position.

Vec2

A 2-D Cartesian vector using finite f64 values.

Enums

Card

Represents the four cardinal directions in 2D space.

ShapeKind

Enumeration of kinds of shapes used by Collider.

Functions

v2

Shorthand for invoking the Vec2 constructor.