-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathray.h
27 lines (25 loc) · 925 Bytes
/
ray.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef RAY_H
#define RAY_H
#include "types.h"
#include "mathutil.h"
#include "transferfuncs.h"
#include "profile.h"
#include "utils.h"
#include "connection.h"
#define NEAREST 0
#define LINEAR 1
//-----------------------------------------------------------------------------------------------------------------------//
// ray casting function prototypes
//-----------------------------------------------------------------------------------------------------------------------//
void raycast(ray3f ray, color4f *);
void getvoxelsonray(ray3f, int, float *);
int getsamplesonray(ray3f, int, float *);
int getfirstvoxel(ray3f, vector3i *);
float hitvolume(ray3f, AABB);
float getlinearsample(float, float, float);
float getnearestsample(float, float, float);
boolean_t getrayintersect(ray3f, float *, float *);
void setplaneconst(float *, float *);
float (*getsamplefunc)(float, float, float);
void initsamplefunc(int);
#endif