#include <BaryCoordSystemTriangle3D.h>
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. |
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.
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().