#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "macros.h"
#include "box.h"
#include "vector.h"
#include "intersect.h"
#include "util.h"
Go to the source code of this file.
◆ TACHYON_INTERNAL
#define TACHYON_INTERNAL 1 |
Definition at line 16 of file box.c.
◆ box_bbox()
int box_bbox |
( |
void * |
obj, |
|
|
vector * |
min, |
|
|
vector * |
max |
|
) |
| |
◆ box_intersect()
void box_intersect |
( |
const box * |
bx, |
|
|
ray * |
ry |
|
) |
| |
◆ box_normal()
void box_normal |
( |
const box * |
bx, |
|
|
const vector * |
pnt, |
|
|
const ray * |
incident, |
|
|
vector * |
N |
|
) |
| |
◆ newbox()
box* newbox |
( |
void * |
tex, |
|
|
vector |
min, |
|
|
vector |
max |
|
) |
| |
◆ box_methods
object_methods box_methods |
|
static |
Initial value:= {
(
void (*)(
const void *,
const void *,
const void *,
void *))(
box_normal),
free
}
void box_intersect(const box *bx, ray *ry)
int box_bbox(void *obj, vector *min, vector *max)
void box_normal(const box *bx, const vector *pnt, const ray *incident, vector *N)
Definition at line 33 of file box.c.
Referenced by newbox().