home *** CD-ROM | disk | FTP | other *** search
- *** vector.h Mon Oct 11 15:00:58 1993
- --- vector.h.frac Mon Oct 11 14:47:18 1993
- ***************
- *** 22,30 ****
- --- 22,33 ----
- * Revision 4.0 91/07/17 14:33:11 kolb
- * Initial version.
- *
- + * Added VecNorm macro 93/01/21 [PhB]
- + *
- */
- #ifndef VECTOR_H
- #define VECTOR_H
- + #include <math.h>
- /*
- * Constants used in projecting onto planes
- */
- ***************
- *** 81,89 ****
- --- 84,96 ----
- #define VecAddScaled(v1,s,v2,r) (r)->x = (v1).x + (s)*(v2).x, \
- (r)->y = (v1).y + (s)*(v2).y, \
- (r)->z = (v1).z + (s)*(v2).z
- + #define VecNorm(a) (sqrt( (a).x*(a).x + \
- + (a).y*(a).y + \
- + (a).z*(a).z ))
-
- extern void VecCross(), VecCoordSys(), MakeBump();
- extern Float VecNormCross(), VecNormalize();
- + extern Float VecDist();
- extern int Refract();
-
- #endif /* VECTOR_H */
-