File: geom.h

package info (click to toggle)
gltron 0.61-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,948 kB
  • ctags: 1,175
  • sloc: ansic: 7,580; perl: 168; makefile: 149; sh: 15
file content (32 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
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
28
29
30
31
32
/* some geometric routines always needed */

#ifndef GEOM_H
#define GEOM_H


float length2(float *v);
float length3(float *v);
float length4(float *v);
float length(float *v);
void normalize(float *v);
void normalize4(float *v);
void crossprod(float *v1, float *v2, float *out);
void normcrossprod(float *v1, float *v2, float *out);
float scalarprod(float *v1, float *v2);
float scalarprod2(float *v1, float *v2);
float scalarprod4(float *v1, float *v2);
void vsub(float *v1, float *v2, float *out);
void vsub2(float *v1, float *v2, float *out);
void vsub4(float *v1, float *v2, float *out);
void vadd(float *v1, float *v2, float *out);
void vadd2(float *v1, float *v2, float *out);
void vadd4(float *v1, float *v2, float *out);
void vcopy(float *v1, float *out);
void vcopy4(float *v1, float *out);
void vmul(float *v, float f);

#endif