#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 "sphere.h"
Go to the source code of this file.
|
object * | newsphere (void *tex, vector ctr, flt rad) |
|
static int | sphere_bbox (void *obj, vector *min, vector *max) |
|
static void | sphere_intersect (const sphere *spr, ray *ry) |
|
static void | sphere_normal (const sphere *spr, const vector *pnt, const ray *incident, vector *N) |
|
◆ SPHERE_PRIVATE
◆ TACHYON_INTERNAL
#define TACHYON_INTERNAL 1 |
◆ newsphere()
object* newsphere |
( |
void * |
tex, |
|
|
vector |
ctr, |
|
|
flt |
rad |
|
) |
| |
◆ sphere_bbox()
static int sphere_bbox |
( |
void * |
obj, |
|
|
vector * |
min, |
|
|
vector * |
max |
|
) |
| |
|
static |
◆ sphere_intersect()
static void sphere_intersect |
( |
const sphere * |
spr, |
|
|
ray * |
ry |
|
) |
| |
|
static |
◆ sphere_normal()
static void sphere_normal |
( |
const sphere * |
spr, |
|
|
const vector * |
pnt, |
|
|
const ray * |
incident, |
|
|
vector * |
N |
|
) |
| |
|
static |
◆ sphere_methods
object_methods sphere_methods |
|
static |
Initial value:= {
(
void (*)(
const void *,
const void *,
const void *,
void *))(
sphere_normal),
free
}
static int sphere_bbox(void *obj, vector *min, vector *max)
static void sphere_normal(const sphere *spr, const vector *pnt, const ray *incident, vector *N)
static void sphere_intersect(const sphere *spr, ray *ry)
Definition at line 26 of file sphere.c.
Referenced by newsphere().