Documentation ¶
Index ¶
- func TouchBound[B interface{ ... }](other B) func(bound B) bool
- func TouchPoint[Vec any, B interface{ ... }](point Vec) func(bound B) bool
- type AABB
- type Node
- type Sphere
- type Tree
- type Vec2
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TouchBound ¶
func TouchPoint ¶
Types ¶
type AABB ¶
type AABB[I constraints.Signed | constraints.Float, V interface { Add(V) V Sub(V) V Max(V) V Min(V) V Less(V) bool More(V) bool Sum() I }] struct{ Upper, Lower V }
type Node ¶
type Node[I constraints.Float, B interface { Union(B) B Surface() I }, V any] struct { Box B Value V // contains filtered or unexported fields }
type Sphere ¶
type Sphere[I constraints.Float, V interface { Add(V) V Sub(V) V Mul(I) V Max(V) V Min(V) V Less(V) bool More(V) bool Norm() I Sum() I }] struct { Center V R I }
type Tree ¶
type Tree[I constraints.Float, B interface { Union(B) B Surface() I }, V any] struct { // contains filtered or unexported fields }
type Vec2 ¶
type Vec2[I constraints.Signed | constraints.Float] [2]I
type Vec3 ¶
type Vec3[I constraints.Signed | constraints.Float] [3]I
Click to show internal directories.
Click to hide internal directories.