Documentation
¶
Index ¶
- func OctreeDepthFromCount(count int) int
- type Element
- type KDTree
- type OctTree
- func (ot OctTree) BoundingBox() geometry.AABB
- func (ot OctTree) ClosestPoint(v vector3.Float64) (int, vector3.Float64)
- func (ot OctTree) ElementsContainingPoint(v vector3.Float64) []int
- func (ot *OctTree) ElementsIntersectingRay(ray geometry.Ray, min, max float64) []int
- func (ot OctTree) TraverseIntersectingRay(ray geometry.Ray, min, max float64, iterator func(i int, min, max *float64))
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OctreeDepthFromCount ¶
Types ¶
type KDTree ¶
type KDTree struct {
// contains filtered or unexported fields
}
func NewKDTreeWithDepth ¶
func (KDTree) BoundingBox ¶
type OctTree ¶
type OctTree struct {
// contains filtered or unexported fields
}
func NewOctreeWithDepth ¶
func (OctTree) BoundingBox ¶
func (OctTree) ClosestPoint ¶
func (OctTree) ElementsContainingPoint ¶
func (*OctTree) ElementsIntersectingRay ¶
type Tree ¶
type Tree interface {
TraverseIntersectingRay(ray geometry.Ray, min, max float64, iterator func(i int, min, max *float64))
ElementsContainingPoint(v vector3.Float64) []int
ClosestPoint(v vector3.Float64) (int, vector3.Float64)
ElementsIntersectingRay(ray geometry.Ray, min, max float64) []int
BoundingBox() geometry.AABB
}
Click to show internal directories.
Click to hide internal directories.