Tachyon (current)  Current Main Branch
Data Structures | Functions
box.h File Reference

Go to the source code of this file.

Data Structures

struct  box
 axis-aligned box definition More...
 

Functions

boxnewbox (void *tex, vector min, vector max)
 
void box_intersect (const box *, ray *)
 
void box_normal (const box *, const vector *, const ray *, vector *)
 

Function Documentation

◆ box_intersect()

void box_intersect ( const box ,
ray *   
)

Definition at line 53 of file box.c.

References box::max, and box::min.

Referenced by newparvol().

◆ box_normal()

void box_normal ( const box ,
const vector *  ,
const ray *  ,
vector *   
)

Definition at line 103 of file box.c.

References FABS, box::max, box::min, MYMAX, VDot(), VNorm(), and VSub().

Referenced by newparvol().

◆ newbox()

box* newbox ( void *  tex,
vector  min,
vector  max 
)

Definition at line 40 of file box.c.

References box_methods, box::max, and box::min.

Referenced by newscalarvol(), and rt_box().