Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + func AnyIntersections(boxes []BBox, search BBox) bool + func AnyIntersections32(boxes []BBox32, search BBox32) bool + func Range3D(p1, p2 Pos) iter.Seq[Pos] + type Axis int + const X + const Y + const Z + func Axes() []Axis + func (a Axis) Faces() (negative, positive Face) + func (a Axis) RotateLeft() Axis + func (a Axis) RotateRight() Axis + func (a Axis) String() string + func (a Axis) Vec3() mgl64.Vec3 + type BBox = boundingBox[float64, mgl64.Vec3] + func Box(x0, y0, z0, x1, y1, z1 float64) BBox + type BBox32 = boundingBox[float32, mgl32.Vec3] + func Box32(x0, y0, z0, x1, y1, z1 float32) BBox32 + type Direction int + const East + const North + const South + const West + func Directions() []Direction + func (d Direction) Face() Face + func (d Direction) Opposite() Direction + func (d Direction) RotateLeft() Direction + func (d Direction) RotateRight() Direction + func (d Direction) String() string + type Face int + const FaceDown + const FaceEast + const FaceNorth + const FaceSouth + const FaceUp + const FaceWest + func Faces() []Face + func HorizontalFaces() []Face + func (f Face) Axis() Axis + func (f Face) Direction() Direction + func (f Face) Opposite() Face + func (f Face) RotateLeft() Face + func (f Face) RotateRight() Face + func (f Face) String() string + type Orientation int + func OrientationFromYaw(yaw float64) Orientation + func (o Orientation) Opposite() Orientation + func (o Orientation) RotateLeft() Orientation + func (o Orientation) RotateRight() Orientation + func (o Orientation) Yaw() float64 + type Pos [3]int + func Max(p1, p2 Pos) Pos + func Min(p1, p2 Pos) Pos + func PosFromVec3(vec3 mgl64.Vec3) Pos + func (p Pos) Add(pos Pos) Pos + func (p Pos) Face(other Pos) Face + func (p Pos) NeighbourFace(other Pos) (Face, bool) + func (p Pos) Neighbours(f func(neighbour Pos), r Range) + func (p Pos) OutOfBounds(r Range) bool + func (p Pos) Side(face Face) Pos + func (p Pos) String() string + func (p Pos) Sub(pos Pos) Pos + func (p Pos) Vec3() mgl64.Vec3 + func (p Pos) Vec3Centre() mgl64.Vec3 + func (p Pos) Vec3Middle() mgl64.Vec3 + func (p Pos) Within(min, max Pos) bool + func (p Pos) X() int + func (p Pos) Y() int + func (p Pos) Z() int + type Range [2]int + func (r Range) Height() int + func (r Range) Max() int + func (r Range) Min() int + type Rotation [2]float64 + func (r Rotation) Add(r2 Rotation) Rotation + func (r Rotation) Direction() Direction + func (r Rotation) Elem() (yaw, pitch float64) + func (r Rotation) Neg() Rotation + func (r Rotation) Opposite() Rotation + func (r Rotation) Orientation() Orientation + func (r Rotation) Pitch() float64 + func (r Rotation) Vec3() mgl64.Vec3 + func (r Rotation) Yaw() float64