Tramway SDK
Public Member Functions | Public Attributes | List of all members
tram::Octree< T >::Node Struct Reference

#include <octree.h>

Public Member Functions

bool IsLeaf ()
 
bool IsNode ()
 

Public Attributes

Nodeoctants [8] = {nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}
 
Nodeparent = nullptr
 
vec3 mid_point
 
float half_extent = 1.0f
 
vec3 point
 
data
 

Member Function Documentation

◆ IsLeaf()

template<typename T >
bool tram::Octree< T >::Node::IsLeaf ( )
inline

◆ IsNode()

template<typename T >
bool tram::Octree< T >::Node::IsNode ( )
inline

Member Data Documentation

◆ data

template<typename T >
T tram::Octree< T >::Node::data

◆ half_extent

template<typename T >
float tram::Octree< T >::Node::half_extent = 1.0f

◆ mid_point

template<typename T >
vec3 tram::Octree< T >::Node::mid_point

◆ octants

template<typename T >
Node* tram::Octree< T >::Node::octants[8] = {nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}

◆ parent

template<typename T >
Node* tram::Octree< T >::Node::parent = nullptr

◆ point

template<typename T >
vec3 tram::Octree< T >::Node::point

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