Documentation
¶
Index ¶
- func AnyIntersections(boxes []BBox, search BBox) bool
- func AnyIntersections32(boxes []BBox32, search BBox32) bool
- func Range3D(p1, p2 Pos) iter.Seq[Pos]
- type Axis
- type BBox
- type BBox32
- type Direction
- type Face
- type Orientation
- type 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
- type Rotation
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyIntersections ¶
func AnyIntersections32 ¶
Types ¶
type Direction ¶
type Direction int
func Directions ¶
func Directions() []Direction
func (Direction) RotateLeft ¶
func (Direction) RotateRight ¶
type Face ¶
type Face int
func HorizontalFaces ¶
func HorizontalFaces() []Face
func (Face) RotateLeft ¶
func (Face) RotateRight ¶
type Orientation ¶
type Orientation int
func OrientationFromYaw ¶
func OrientationFromYaw(yaw float64) Orientation
func (Orientation) Opposite ¶
func (o Orientation) Opposite() Orientation
func (Orientation) RotateLeft ¶
func (o Orientation) RotateLeft() Orientation
func (Orientation) RotateRight ¶
func (o Orientation) RotateRight() Orientation
func (Orientation) Yaw ¶
func (o Orientation) Yaw() float64
type Pos ¶
type Pos [3]int
func PosFromVec3 ¶
func (Pos) Neighbours ¶
func (Pos) OutOfBounds ¶
func (Pos) Vec3Centre ¶
func (Pos) Vec3Middle ¶
type Rotation ¶
type Rotation [2]float64
func (Rotation) Orientation ¶
func (r Rotation) Orientation() Orientation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.