MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
geometry.hh
1 #ifndef GEOMETRY_H
2 #define GEOMETRY_H
3 
4 bool in_domain(double, double, double);
5 double *CrossProduct(double *, double *);
6 bool SameSide(double *,double *,double *,double *);
7 bool PointInTriangle(double *,double *,double *,double *);
8 double porosity(int ***);
9 
10 #endif
double porosity(int ***amat)
Calculates porosity.
Definition: geometry.cc:70
bool SameSide(double p1[], double p2[], double a[], double b[])
True if two points are in the same half-plane defined by other two points.
Definition: geometry.cc:32
double * CrossProduct(double a[], double b[])
Cross product of two points in 3D.
Definition: geometry.cc:20
bool in_domain(double x, double y, double z)
True if the point is in the domain, False otherwise.
Definition: geometry.cc:9
bool PointInTriangle(double p[], double a[], double b[], double c[])
True if point lies in the triangle.
Definition: geometry.cc:56