Documentation ¶
Index ¶
- func OctreeDepthFromCount(count int) int
- type BoundingBoxElement
- 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) ElementsWithinRange(position vector3.Float64, distance 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 BoundingBoxElement ¶ added in v0.9.0
func (BoundingBoxElement) BoundingBox ¶ added in v0.9.0
func (be BoundingBoxElement) BoundingBox() geometry.AABB
func (BoundingBoxElement) ClosestPoint ¶ added in v0.9.0
func (be BoundingBoxElement) ClosestPoint(p vector3.Float64) vector3.Float64
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 ¶
func (OctTree) ElementsWithinRange ¶ added in v0.17.0
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.