AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
svect.h
1#ifndef H_SVECT3D_
2#define H_SVECT3D_
3
4typedef struct {
5 double x, y, z; /* the coordinates of the vector */
6} SVECT;
7
8/*********************************************************/
9/* struct methods -------------------------------------- */
10
11void svect_init(SVECT *);
12void svect_init_value(SVECT *v, double x, double y, double z);
13void svect_init_array(SVECT *, int);
14SVECT svect_avg(SVECT v1, SVECT v2);
15void svect_print(FILE *, SVECT);
16void svect_print_array(FILE *, SVECT *, int);
17void svect_copy_array(SVECT *, SVECT *, int);
18void svect_copy(SVECT *vdest, SVECT vorig);
19void svect_printScreen(SVECT, char *);
20void svect_printScreen_array(char *, SVECT *, char *, int, int, char *);
21double svect_mag(SVECT);
22double svect_mag_safe(SVECT);
23SVECT svect_subtract(SVECT, SVECT);
24SVECT svect_add(SVECT, SVECT);
25SVECT svect_scale(SVECT, double);
26void svect_scale_replace(SVECT *v, double scale);
27void svect_scale_replace_array(SVECT *v, double scale, int size);
28void svect_add_array2(SVECT *v, SVECT *v1, SVECT *v2, int size);
29SVECT svect_subtract_array(SVECT *vect, int size);
30void svect_subtract_array2(SVECT *v, SVECT *v1, SVECT *v2, int size);
31SVECT svect_average_array(SVECT *vect, int size);
32void svect_scale_replace(SVECT *, double);
33double svect_dotp(SVECT, SVECT);
34void svect_dotp_array(SVECT *v1, SVECT *v2, int size, double *result);
35SVECT svect_sum_array(SVECT *, int);
36void svect_integrity_check(SVECT, int, char *);
37void svect_integrity_check_array(SVECT *, int, int, char *);
38SVECT svect_cross(SVECT v1, SVECT v2);
39void printScreen_debug_svect(char *descript, SVECT *v, int n, int *global_nd_ids);
40void printScreen_debug_vec(char *descript, SVECT *f, int n);
41
42#endif
Definition: svect.h:4