3 #ifndef __u3d_triangle_hpp
4 #define __u3d_triangle_hpp
6 #include "u3d_point.hpp"
9 #define COS_TRIANGLE_EPSILON 1.7e-7
22 inline U3dTriangle(
const int& iind1,
const int& iind2,
const int& iind3);
34 const double& A,
const double& B,
const double& C,
35 double& outX,
double& outY,
double& outZ)
const;
42 const double& A,
const double& B,
const double& C,
43 double& outX,
double& outY,
double& outZ)
const;
49 const double& A,
const double& B,
const double& C,
50 double& outX,
double& outY,
double& outZ)
const;
59 inline U3dTriangle::U3dTriangle(
const int& iind1,
const int& iind2,
const int& iind3) :
60 ind1(iind1), ind2(iind2), ind3(iind3)
65 inline double vectorLength(
const double& a1,
const double& a2,
const double& a3)
67 return sqrt(a1*a1 + a2*a2 + a3*a3);
76 typedef std::vector<U3dTriangle*> U3dTrianglesAr;
bool intersectWithSegment(const U3dPoint &PTr0, const U3dPoint &PTr1, const U3dPoint &PTr2, const U3dPoint &pA, const U3dPoint &pB, const double &A, const double &B, const double &C, double &outX, double &outY, double &outZ) const
Definition: u3d_triangle.hpp:18
Definition: u3d_point.hpp:16