| 5 |
|
|
| 6 |
|
#ifndef _RAD_RTMATH_H_ |
| 7 |
|
#define _RAD_RTMATH_H_ |
| 8 |
– |
#ifdef __cplusplus |
| 9 |
– |
extern "C" { |
| 10 |
– |
#endif |
| 8 |
|
|
| 9 |
|
#include <math.h> |
| 10 |
|
|
| 11 |
< |
#include "tifftypes.h" |
| 15 |
< |
|
| 11 |
> |
#include "tiff.h" /* needed for int32, etc. */ |
| 12 |
|
#include "mat4.h" |
| 13 |
|
|
| 14 |
+ |
#ifdef __cplusplus |
| 15 |
+ |
extern "C" { |
| 16 |
+ |
#endif |
| 17 |
+ |
|
| 18 |
|
/* regular transformation */ |
| 19 |
|
typedef struct { |
| 20 |
|
MAT4 xfm; /* transform matrix */ |
| 50 |
|
extern int invxf(XF *ret, int ac, char *av[]); |
| 51 |
|
extern int fullxf(FULLXF *fx, int ac, char *av[]); |
| 52 |
|
/* defined in zeroes.c */ |
| 53 |
< |
extern int quadtratic(double *r, double a, double b, double c); |
| 53 |
> |
extern int quadratic(double *r, double a, double b, double c); |
| 54 |
|
/* defined in dircode.c */ |
| 55 |
|
extern int32 encodedir(FVECT dv); |
| 56 |
|
extern void decodedir(FVECT dv, int32 dc); |