|
|
|
@ -7,10 +7,6 @@
|
|
|
|
|
#ifndef MAT3_HAS_BEEN_INCLUDED
|
|
|
|
|
#define MAT3_HAS_BEEN_INCLUDED
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- Constants ------------------------------ */
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -23,6 +19,11 @@ extern "C" {
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define MAT3_DET0 -1 /* Indicates singular mat */
|
|
|
|
|
#define MAT3_EPSILON 1e-12 /* Close enough to zero */
|
|
|
|
|
#define MAT3_PI 3.141592653589793 /* Pi */
|
|
|
|
@ -147,9 +148,11 @@ int MAT3mult_hvec (MAT3hvec result_vec, MAT3hvec vec, MAT3mat mat, int normaliz
|
|
|
|
|
void MAT3cross_product(MAT3vec result,MAT3vec,MAT3vec);
|
|
|
|
|
void MAT3perp_vec(MAT3vec result_vec, MAT3vec vec, int is_unit);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* MAT3_HAS_BEEN_INCLUDED */
|
|
|
|
|
|
|
|
|
|