Package-level declarations

Types

Link copied to clipboard
data class Plane(val normal: Vec2, val offset: Float)

A 2D plane defined by a normal and offset. separation = dot(normal, point) - offset

Link copied to clipboard
data class Rot(val cos: Float, val sin: Float)

2D rotation represented as cosine and sine of the angle. This is more efficient than storing the angle directly.

Link copied to clipboard
data class Transform(val position: Vec2, val rotation: Rot)

A 2D transform containing position and rotation.

Link copied to clipboard
data class Vec2(val x: Float, val y: Float)

2D vector for physics calculations.