1 //
2 //  geometry.h
3 //  libmsym
4 //
5 //  Created by Marcus Johansson on 28/11/14.
6 //  Copyright (c) 2014 Marcus Johansson.
7 //
8 //  Distributed under the MIT License ( See LICENSE file or copy at http://opensource.org/licenses/MIT )
9 //
10 
11 #ifndef __MSYM__GEOMETRY_h
12 #define __MSYM__GEOMETRY_h
13 
14 #include <stdio.h>
15 #include "msym.h"
16 
17 msym_error_t findGeometry(int length, msym_element_t *elements[length], double cm[3], msym_thresholds_t *thresholds, msym_geometry_t *g, double e[3], double v[3][3]);
18 msym_error_t findCenterOfMass(int length, msym_element_t *elements[length], double v[3]);
19 int geometryDegenerate(msym_geometry_t g);
20 void printGeometry(msym_geometry_t g);
21 
22 #endif /* defined(__MSYM__GEOMETRY_h) */
23