Triangle< N, T > Class Template Reference

A class for a triangle in N dimensions. More...

#include <Triangle.h>

List of all members.

Public Types

typedef ads::FixedArray< N, T > Point
 The representation for a point.

Public Member Functions

Constructors etc.

 Triangle ()
 Default constructor. Uninitialized memory.
 Triangle (const Point &a, const Point &b, const Point &c)
 Construct from three points.
 Triangle (const Triangle &other)
 Copy constructor.
const Triangleoperator= (const Triangle &other)
 Assignment operator.
 ~Triangle ()
 Trivial destructor.
Accesors.

const PointgetVertex (const int n) const
 Get the specified vertex.
Manipulators.

void setVertex (const int n, const Point &x) const
 Set the specified vertex.
Translations.

Triangleoperator+= (const Point &p)
 Translate the triangle by +p.
Triangleoperator-= (const Point &p)
 Translate the triangle by -p.

Related Functions

(Note that these are not member functions.)



template<typename T >
Plane< T > buildSupportingPlane (const Triangle< 3, T > &triangle)
 Return the supporting plane of a triangle in 3 dimensions.
template<int N, typename T >
std::istream & operator>> (std::istream &in, Triangle< N, T > &t)
 Read the three vertices.
template<int N, typename T >
std::ostream & operator<< (std::ostream &out, const Triangle< N, T > &t)
 Write the three vertices.

Detailed Description

template<int N, typename T = double>
class Triangle< N, T >

A class for a triangle in N dimensions.

Parameters:
N is the dimension.
T is the number type. By default it is double.

Friends And Related Function Documentation

template<typename T >
Plane< T > buildSupportingPlane ( const Triangle< 3, T > &  triangle  )  [related]

Return the supporting plane of a triangle in 3 dimensions.

template<int N, typename T >
std::ostream & operator<< ( std::ostream &  out,
const Triangle< N, T > &  t 
) [related]

Write the three vertices.

template<int N, typename T >
std::istream & operator>> ( std::istream &  in,
Triangle< N, T > &  t 
) [related]

Read the three vertices.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:59 2016 for Computational Geometry Package by  doxygen 1.6.3