Versions in this module Expand all Collapse all v0 v0.0.0 Dec 30, 2023 Changes in this version + func TouchBound[B interface{ ... }](other B) func(bound B) bool + func TouchPoint[Vec any, B interface{ ... }](point Vec) func(bound B) bool + type AABB struct + Lower V + Upper V + func (aabb AABB[I, V]) Surface() I + func (aabb AABB[I, V]) Touch(other AABB[I, V]) bool + func (aabb AABB[I, V]) Union(other AABB[I, V]) AABB[I, V] + func (aabb AABB[I, V]) WithIn(point V) bool + type Node struct + Box B + Value V + func (n *Node[I, B, V]) String() string + type Sphere struct + Center V + R I + func (s Sphere[I, V]) Surface() I + func (s Sphere[I, V]) Touch(other Sphere[I, V]) bool + func (s Sphere[I, V]) Union(other Sphere[I, V]) Sphere[I, V] + func (s Sphere[I, V]) WithIn(point V) bool + type Tree struct + func (t *Tree[I, B, V]) Delete(n *Node[I, B, V]) any + func (t *Tree[I, B, V]) Find(test func(bound B) bool, foreach func(n *Node[I, B, V]) bool) + func (t *Tree[I, B, V]) Insert(leaf B, value V) (n *Node[I, B, V]) + func (t Tree[I, B, V]) String() string + type Vec2 [2]I + func (v Vec2[I]) Add(other Vec2[I]) Vec2[I] + func (v Vec2[I]) Less(other Vec2[I]) bool + func (v Vec2[I]) Max(other Vec2[I]) Vec2[I] + func (v Vec2[I]) Min(other Vec2[I]) Vec2[I] + func (v Vec2[I]) More(other Vec2[I]) bool + func (v Vec2[I]) Mul(i I) Vec2[I] + func (v Vec2[I]) Norm() float64 + func (v Vec2[I]) Sub(other Vec2[I]) Vec2[I] + func (v Vec2[I]) Sum() I + type Vec3 [3]I + func (v Vec3[I]) Add(other Vec3[I]) Vec3[I] + func (v Vec3[I]) Less(other Vec3[I]) bool + func (v Vec3[I]) Max(other Vec3[I]) Vec3[I] + func (v Vec3[I]) Min(other Vec3[I]) Vec3[I] + func (v Vec3[I]) More(other Vec3[I]) bool + func (v Vec3[I]) Mul(i I) Vec3[I] + func (v Vec3[I]) Norm() float64 + func (v Vec3[I]) Sub(other Vec3[I]) Vec3[I] + func (v Vec3[I]) Sum() I