1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
< |
* fvect.c - routines for float vector calculations |
9 |
< |
* |
10 |
< |
* 8/14/85 |
5 |
> |
* fvect.c - routines for floating-point vector calculations |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include <math.h> |
11 |
|
#include "fvect.h" |
12 |
|
|
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
+ |
void |
76 |
|
fcross(vres, v1, v2) /* vres = v1 X v2 */ |
77 |
|
register FVECT vres, v1, v2; |
78 |
|
{ |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
+ |
void |
86 |
|
fvsum(vres, v0, v1, f) /* vres = v0 + f*v1 */ |
87 |
|
register FVECT vres, v0, v1; |
88 |
|
register double f; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
+ |
void |
121 |
|
spinvector(vres, vorig, vnorm, theta) /* rotate vector around normal */ |
122 |
|
FVECT vres, vorig, vnorm; |
123 |
|
double theta; |