File: vector.h

package info (click to toggle)
cmix 2.0.12-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,920 kB
  • ctags: 6,063
  • sloc: cpp: 27,139; ansic: 11,924; sh: 2,795; exp: 2,270; yacc: 1,724; makefile: 1,247; lex: 488; perl: 278
file content (18 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __VECTOR_H
#define __VECTOR_H
/* The xxx_S functions are identical to their xxx counterpart */

myfloat	vector_norm(vectorType *);
myfloat	vector_norm_S(vectorType *);
/*void vector_copy(vectorType *, vectorType *);*/
void    vector_sub(vectorType *, vectorType *, vectorType *);
void    vector_sub_S(vectorType *, vectorType *, vectorType *);
myfloat	vector_dot(vectorType *, vectorType *);
void    vector_cross(vectorType *, vectorType *, vectorType *);
myfloat vector_norm_cross(vectorType *, vectorType *, vectorType *);
void    vector_scale(myfloat, vectorType *, vectorType *);
#pragma cmix pure: vector_norm() vector_norm_S()
#pragma cmix pure: vector_sub() vector_sub_S() vector_dot()
#pragma cmix pure: vector_cross() vector_norm_cross() vector_scale()

#endif