-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeom2d.c
95 lines (62 loc) · 3.11 KB
/
geom2d.c
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#include <stdbool.h>
#include "geom2d.h"
extern inline double bmm_geom2d_dot(double const *restrict,
double const *restrict);
extern inline double bmm_geom2d_norm2(double const *);
extern inline double bmm_geom2d_norm(double const *);
extern inline double bmm_geom2d_dir(double const *);
extern inline double bmm_geom2d_redir(double);
extern inline void bmm_geom2d_add(double *restrict,
double const *restrict, double const *restrict);
extern inline void bmm_geom2d_addto(double *restrict, double const *restrict);
extern inline void bmm_geom2d_scale(double *restrict,
double const *restrict, double);
extern inline void bmm_geom2d_normal(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_project(double *restrict,
double const *restrict, double const *restrict);
extern inline void bmm_geom2d_rperp(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_lperp(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_to_polar2(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_to_polar(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_from_polar(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_from_polar2(double *restrict,
double const *restrict);
extern inline void bmm_geom2d_diff(double *restrict,
double const *restrict, double const *restrict);
extern inline void bmm_geom2d_diffto(double *restrict,
double const *restrict);
extern inline double bmm_geom2d_dist2(double const *restrict,
double const *restrict);
extern inline double bmm_geom2d_dist(double const *restrict,
double const *restrict);
extern inline double bmm_geom2d_angle(double const *restrict,
double const *restrict);
extern inline void bmm_geom2d_pdiff(double *restrict,
double const *restrict, double const *restrict, double const *restrict);
extern inline double bmm_geom2d_pdist2(double const *restrict,
double const *restrict, double const *restrict);
extern inline double bmm_geom2d_pdist(double const *restrict,
double const *restrict, double const *restrict);
extern inline double bmm_geom2d_pangle(double const *restrict,
double const *restrict, double const *restrict);
extern inline void bmm_geom2d_cpdiff(double *restrict,
double const *restrict, double const *restrict,
double const *restrict, bool const *restrict);
extern inline double bmm_geom2d_cpdist2(double const *restrict,
double const *restrict, double const *restrict, bool const *restrict);
extern inline double bmm_geom2d_cpdist(double const *restrict,
double const *restrict, double const *restrict, bool const *restrict);
extern inline double bmm_geom2d_cpangle(double const *restrict,
double const *restrict, double const *restrict, bool const *restrict);
extern inline void bmm_geom2d_refl(double *restrict,
double const *restrict, double const *restrict, int);
extern inline void bmm_geom2d_reflto(double *restrict,
double const *restrict, int);
extern inline double bmm_geom2d_shellvol(double const *restrict,
double, double const *restrict, bool const *);