ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AABB< T > Struct Template Reference

Simple axis aligned box structure. More...

#include <RayAndBox.h>

Inheritance diagram for AABB< T >:
Collaboration diagram for AABB< T >:

Public Member Functions

 AABB (const Vector3Tpl< T > &minCorner, const Vector3Tpl< T > &maxCorner)
 
bool intersects (const Ray< T > &r, T *t0=0, T *t1=0) const
 

Public Attributes

Vector3Tpl< T > corners [2]
 

Detailed Description

template<typename T>
struct AABB< T >

Simple axis aligned box structure.

Definition at line 50 of file RayAndBox.h.

Constructor & Destructor Documentation

◆ AABB()

template<typename T >
AABB< T >::AABB ( const Vector3Tpl< T > &  minCorner,
const Vector3Tpl< T > &  maxCorner 
)
inline

Member Function Documentation

◆ intersects()

template<typename T >
bool AABB< T >::intersects ( const Ray< T > &  r,
T *  t0 = 0,
T *  t1 = 0 
) const
inline

Member Data Documentation

◆ corners

template<typename T >
Vector3Tpl<T> AABB< T >::corners[2]

Definition at line 92 of file RayAndBox.h.

Referenced by AABB< T >::AABB(), and AABB< T >::intersects().


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