piecemeal library

Classes

Array2D<T>
A two-dimensional fixed-size array of elements of type T. [...]
Circle
Utility class for handling simple rasterized circles of a relatively small radius. [...]
Direction
Line
Traces a line of integer coordinates from a start point to and through an end point using Bresenham's line drawing algorithm. [...]
Rect
A two-dimensional immutable rectangle with integer coordinates. [...]
RectIterator
Rng
The Random Number God: deliverer of good and ill fortune alike.
Vec
A two-dimensional point.
VecBase
Shared base class of Vec and Direction. We do this instead of having Direction inherit directly from Vec so that we can avoid it inheriting an == operator, which would prevent it from being used in switch statements. Instead, Direction uses identity equality.

Properties

rng Rng
A singleton instance of Rng globally available.
final