Packages for various things I usually want when writing Go.
General purpose array types.
stable.go
- Stable dynamic array. Pointers taken will not invalidate while resizing.
There are many (game focused) math packages in Go, but I usually don't like them or forget what they're called, so I end up rolling my own for each project. This package is so I no longer have to do that.
rect.go
- Rectangle operationsrectcut.go
- Simple implementation of RectCut
float.go
- Floating-point math operations- Build with
MG_USE_F32
to usefloat32
internally - Build with
MG_USE_F64
to usefloat64
internally (default)
- Build with
angle.go
- Utilities for working with different angle units- Build with
MG_USE_RADIANS
to use radians internally - Build with
MG_USE_DEGREES
to use degrees internally - Build with
MG_USE_TURNS
to use turns internally (default)
- Build with
vec2.go
- Vector2 operationsvec3.go
- Vector3 operationsvec4.go
- Vector4 operations
Tiny utils I want to make tests nicer to write.
See LICENSE