vtf-logo

geom::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.)

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


Detailed Description

template<int N, typename T = double>
class geom::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.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:56:00 2007 for Computational Geometry Package by  doxygen 1.4.7