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  Triangle< t_dims, t_type, t_vertex >
 A triangle is a polygon with three edges and three vertices. It is one of the basic shapes in geometry. This triangle with vertices A, B, and C is which can be accessed using vertex(...) More...
 
class  TriangleBase
 Base class for N-dimensional triangles. More...
 

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)