#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "macros.h"
#include "vector.h"
#include "intersect.h"
#include "util.h"
#include "cylinder.h"
Go to the source code of this file.
|
object * | newcylinder (void *tex, vector ctr, vector axis, flt rad) |
|
static int | cylinder_bbox (void *obj, vector *min, vector *max) |
|
static void | cylinder_intersect (const cylinder *cyl, ray *ry) |
|
static void | cylinder_normal (const cylinder *cyl, const vector *pnt, const ray *incident, vector *N) |
|
object * | newfcylinder (void *tex, vector ctr, vector axis, flt rad) |
|
static int | fcylinder_bbox (void *obj, vector *min, vector *max) |
|
static void | fcylinder_intersect (const cylinder *cyl, ray *ry) |
|
◆ CYLINDER_PRIVATE
◆ TACHYON_INTERNAL
#define TACHYON_INTERNAL 1 |
◆ cylinder_bbox()
static int cylinder_bbox |
( |
void * |
obj, |
|
|
vector * |
min, |
|
|
vector * |
max |
|
) |
| |
|
static |
◆ cylinder_intersect()
static void cylinder_intersect |
( |
const cylinder * |
cyl, |
|
|
ray * |
ry |
|
) |
| |
|
static |
◆ cylinder_normal()
static void cylinder_normal |
( |
const cylinder * |
cyl, |
|
|
const vector * |
pnt, |
|
|
const ray * |
incident, |
|
|
vector * |
N |
|
) |
| |
|
static |
◆ fcylinder_bbox()
static int fcylinder_bbox |
( |
void * |
obj, |
|
|
vector * |
min, |
|
|
vector * |
max |
|
) |
| |
|
static |
◆ fcylinder_intersect()
static void fcylinder_intersect |
( |
const cylinder * |
cyl, |
|
|
ray * |
ry |
|
) |
| |
|
static |
◆ newcylinder()
object* newcylinder |
( |
void * |
tex, |
|
|
vector |
ctr, |
|
|
vector |
axis, |
|
|
flt |
rad |
|
) |
| |
◆ newfcylinder()
object* newfcylinder |
( |
void * |
tex, |
|
|
vector |
ctr, |
|
|
vector |
axis, |
|
|
flt |
rad |
|
) |
| |
◆ cylinder_methods
object_methods cylinder_methods |
|
static |
Initial value:= {
(
void (*)(
const void *,
const void *,
const void *,
void *))(
cylinder_normal),
free
}
static void cylinder_normal(const cylinder *cyl, const vector *pnt, const ray *incident, vector *N)
static void cylinder_intersect(const cylinder *cyl, ray *ry)
static int cylinder_bbox(void *obj, vector *min, vector *max)
Definition at line 26 of file cylinder.c.
Referenced by newcylinder().
◆ fcylinder_methods
object_methods fcylinder_methods |
|
static |
Initial value:= {
(
void (*)(
const void *,
const void *,
const void *,
void *))(
cylinder_normal),
free
}
static void fcylinder_intersect(const cylinder *cyl, ray *ry)
static void cylinder_normal(const cylinder *cyl, const vector *pnt, const ray *incident, vector *N)
static int fcylinder_bbox(void *obj, vector *min, vector *max)
Definition at line 33 of file cylinder.c.
Referenced by newfcylinder().