API Documentation
Loading...
Searching...
No Matches
Triangle.hpp File Reference
#include <NDEVR/BaseValues.h>
#include <NDEVR/Vertex.h>
#include <NDEVR/LineSegment.h>
#include <NDEVR/Angle.h>
#include <NDEVR/AngleDefinitions.h>
Include dependency graph for Triangle.hpp:

Go to the source code of this file.

Classes

class  TriangleBase
 
class  Triangle< t_dims, t_type, t_vertex >
 
struct  Constant< Triangle< t_dims, t_type, t_vector > >
 

Namespaces

namespace  NDEVR
 

Enumerations

enum  TriangleLocation {
  outside_tri , edge_ab , edge_bc , edge_ca ,
  vertex_a , vertex_b , vertex_c , angle_a ,
  angle_b , angle_c , inside_tri , mixed_location_tri ,
  tri_location_nan
}
 Values that represent triangle locations. More...
 

Functions

template<uint01 t_dims, class t_type , class t_vertex >
constexpr Vector< t_dims, t_type > closestPoint (const Triangle< t_dims, t_type, t_vertex > &tri, const t_vertex &point)
 
template<uint01 t_dims, class t_type , class t_vertex >
constexpr Vector< t_dims, t_type > closestPoint (const Triangle< t_dims, t_type, t_vertex > &tri, const t_vertex &point, const t_vertex &edge0, const Vector< t_dims, t_type > &edge1, t_type a, t_type b, t_type c, t_type det)
 
template<bool t_has_winding, uint01 t_dims, class t_type , class t_vertex >
constexpr bool equals (const Triangle< t_dims, t_type, t_vertex > &tri_a, const Triangle< t_dims, t_type, t_vertex > &tri_b, t_type epsilon=0)