aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/qt_terr/vecmath.h
blob: 0c27eff6b643bf5ac98947fd61c92714b1fec1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef VECMATH_H
#define VECMATH_H

double DOT(double a[3], double b[3]);

void ADD(double out[3], double a[3], double b[3]);

void SUB(double out[3], double a[3], double b[3]);

void SCALE(double out[3], double v[3], double scalar);

double length(double v[3]);

void normalize(double out[3], double in[3]);

#endif/*VECMATH_H*/