Go to the documentation of this file.
21 #ifndef __triangleFunctions_hpp__
22 #define __triangleFunctions_hpp__
40 auto n =
cross(p2-p1, p3-p1);
41 if(
equal(
n.length(), 0.0) )
INLINE_FUNCTION_HD triple< T > normalize(const triple< T > &v1)
INLINE_FUNCTION_HD bool valid(const realx3 &p1, const realx3 &p2, const realx3 &p3)
INLINE_FUNCTION_HD bool equal(const box &b1, const box &b2, real tol=smallValue)
INLINE_FUNCTION_HD realx3 normal(const realx3 &p1, const realx3 &p2, const realx3 &p3)
INLINE_FUNCTION_HD triple< T > cross(const triple< T > &v1, const triple< T > &v2)
INLINE_FUNCTION_HD T length(const triple< T > &v1)
Vector< T, Allocator > abs(const Vector< T, Allocator > &v)
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD real surface(const realx3 &p1, const realx3 &p2, const realx3 &p3)