Euphoria
eu::Aabb Struct Reference

#include <aabb.h>

Public Member Functions

 Aabb (const vec3f &amin, const vec3f &amax)
 
void extend (const vec3f &vec)
 
void extend (const Aabb &aabb)
 
void offset (const vec3f &vec)
 
vec3f wrap (const vec3f &vec) const
 
Aabb offset_copy (const vec3f &vec) const
 
vec3f get_size () const
 
bool is_valid () const
 
vec3f get_offset () const
 
std::vector< vec3fcalc_all_corners () const
 

Static Public Member Functions

static Aabb create_empty ()
 

Public Attributes

vec3f min
 
vec3f max
 

Detailed Description

Definition at line 14 of file aabb.h.

Constructor & Destructor Documentation

◆ Aabb()

eu::Aabb::Aabb ( const vec3f amin,
const vec3f amax 
)

Definition at line 10 of file aabb.cc.

Member Function Documentation

◆ calc_all_corners()

std::vector< vec3f > eu::Aabb::calc_all_corners ( ) const

Definition at line 98 of file aabb.cc.

◆ create_empty()

Aabb eu::Aabb::create_empty ( )
static

Definition at line 49 of file aabb.cc.

◆ extend() [1/2]

void eu::Aabb::extend ( const Aabb aabb)

Definition at line 40 of file aabb.cc.

◆ extend() [2/2]

void eu::Aabb::extend ( const vec3f vec)

Definition at line 31 of file aabb.cc.

◆ get_offset()

vec3f eu::Aabb::get_offset ( ) const

Definition at line 73 of file aabb.cc.

◆ get_size()

vec3f eu::Aabb::get_size ( ) const

Definition at line 56 of file aabb.cc.

◆ is_valid()

bool eu::Aabb::is_valid ( ) const

Definition at line 64 of file aabb.cc.

◆ offset()

void eu::Aabb::offset ( const vec3f vec)

Definition at line 81 of file aabb.cc.

◆ offset_copy()

Aabb eu::Aabb::offset_copy ( const vec3f vec) const

Definition at line 89 of file aabb.cc.

◆ wrap()

vec3f eu::Aabb::wrap ( const vec3f vec) const

Definition at line 17 of file aabb.cc.

Member Data Documentation

◆ max

vec3f eu::Aabb::max

Definition at line 17 of file aabb.h.

◆ min

vec3f eu::Aabb::min

Definition at line 16 of file aabb.h.


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