entttree 0.1.0
Hierarchical entity management for EnTT
Loading...
Searching...
No Matches
entttree::RaySearchNode< Node, T, N > Struct Template Reference

A bounded node augmented with a ray and hit interval in local coordinates. More...

#include <hierarchy_types.h>

Inheritance diagram for entttree::RaySearchNode< Node, T, N >:
entttree::BoundedNode< Node, T, N > entttree::TransformedNode< Node, T, N >

Public Attributes

Ray< T, Nlocal_ray
 The query ray in this node's local coordinate system.
 
Rect< T, 1 > interval
 Parameter interval where the ray intersects the computed bounds.
 
- Public Attributes inherited from entttree::BoundedNode< Node, T, N >
std::optional< Rect< T, N > > intrinsic_bounds
 The entity's own bounds, if set.
 
std::optional< Rect< T, N > > computed_bounds
 Union of intrinsic + children bounds, if any.
 
- Public Attributes inherited from entttree::TransformedNode< Node, T, N >
Node node
 The underlying node handle.
 
AffineTransform< T, Nnode_to_root
 Cumulative transform from node space to root space.
 

Additional Inherited Members

- Public Types inherited from entttree::TransformedNode< Node, T, N >
using InnerNode = Node
 

Detailed Description

template<typename Node, typename T, size_t N>
struct entttree::RaySearchNode< Node, T, N >

A bounded node augmented with a ray and hit interval in local coordinates.

Yielded by BoundsSystem::traverse_along_ray() and search_along_ray().

Template Parameters
NodeThe inner node type.
TScalar type.
NSpatial dimension.

Definition at line 208 of file hierarchy_types.h.

Member Data Documentation

◆ interval

template<typename Node , typename T , size_t N>
Rect<T,1> entttree::RaySearchNode< Node, T, N >::interval

Parameter interval where the ray intersects the computed bounds.

Definition at line 210 of file hierarchy_types.h.

◆ local_ray

template<typename Node , typename T , size_t N>
Ray<T,N> entttree::RaySearchNode< Node, T, N >::local_ray

The query ray in this node's local coordinate system.

Definition at line 209 of file hierarchy_types.h.


The documentation for this struct was generated from the following file: