Skip to content

Commit 16534ec

Browse files
Add c_vectormath.h
Co-Authored-By: David Ignacio Cortee <[email protected]>
1 parent ed68830 commit 16534ec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

native/include/c_vectormath.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#pragma once
2+
#include<cmath>
3+
4+
5+
void cross(double *output, double * A, double * B);
6+
double dot(double *A, double *B, int n);
7+
8+
double compute_norm(double * a, int n);
9+
10+
void normalise(double * a, int n);
11+
void normalise(double *m, int *pins, int n);
12+
13+
double cross_x(double a0, double a1, double a2, double b0, double b1, double b2);
14+
double cross_y(double a0, double a1, double a2, double b0, double b1, double b2);
15+
double cross_z(double a0, double a1, double a2, double b0, double b1, double b2);

0 commit comments

Comments
 (0)