Go::BaryCoordSystemTriangle3D Class Reference
['utils' - a collection of useful math and programming tools]

A barycentric coordinate system for a triangle (2-manifold) embedded in 3D. More...

#include <BaryCoordSystemTriangle3D.h>

List of all members.

Public Member Functions

 BaryCoordSystemTriangle3D ()
 Empty default constructor.
 BaryCoordSystemTriangle3D (const Array< double, 3 > *corners)
 Constructor.
template<typename T>
Array< T, 3 > baryToCart (const Array< T, 3 > &bary_pt) const
 Input is a barycentric point, output is the corresponding cartesian point.
template<typename T>
Array< T, 3 > cartToBary (const Array< T, 3 > &cart_pt) const
 Input is a cartesian point, output is the corresponding barycentric point.


Detailed Description

A barycentric coordinate system for a triangle (2-manifold) embedded in 3D.

Note that this differs from what can be expressed using the BaryCoordSystem template in that for the latter, the dimension of the simplex and the dimension of the space is equal.

Definition at line 54 of file BaryCoordSystemTriangle3D.h.


Constructor & Destructor Documentation

Go::BaryCoordSystemTriangle3D::BaryCoordSystemTriangle3D ( const Array< double, 3 > *  corners  )  [inline]

Constructor.

Takes an array of points that will become the corners of the coordinate simplex.

Definition at line 61 of file BaryCoordSystemTriangle3D.h.

References Go::area(), and Go::Array< T, Dim >::normalize().


The documentation for this class was generated from the following file:
Generated on Mon Jun 11 14:48:18 2007 for GoTools Core Library by  doxygen 1.5.1