Versions in this module Expand all Collapse all v0 v0.5.16 Feb 23, 2022 v0.5.13 Feb 23, 2022 v0.5.12 Feb 23, 2022 Changes in this version + type Axis int + const X + const Y + const Z + func Axes() []Axis + func (a Axis) RotateLeft() Axis + func (a Axis) RotateRight() Axis + func (a Axis) String() string + 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 PosFromVec3(vec3 mgl64.Vec3) Pos + func (p Pos) Add(pos Pos) Pos + func (p Pos) Face(other Pos) Face + 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) Subtract(pos Pos) Pos + func (p Pos) Vec3() mgl64.Vec3 + func (p Pos) Vec3Centre() mgl64.Vec3 + func (p Pos) Vec3Middle() mgl64.Vec3 + 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