Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BarycentricCoord Class Reference

A set of barycentric coordinates on a triangular face. More...

#include <zcross_extractor.H>

List of all members.

Public Member Functions

 BarycentricCoord (double c0=0.0, double c1=0.0, double c2=0.0)
double & operator[] (int idx)
double operator[] (int idx) const
Wpt to_Wpt (const Bface *f) const
 Returns the position of Barycentric coordinate on the given face in world coordinates.
Wvec to_Wvec () const
 Return the Barycentric coordinate store in a Wvec.

Private Attributes

double coords [3]


Detailed Description

A set of barycentric coordinates on a triangular face.

Definition at line 51 of file zcross_extractor.H.


Constructor & Destructor Documentation

BarycentricCoord::BarycentricCoord double  c0 = 0.0,
double  c1 = 0.0,
double  c2 = 0.0
[inline]
 

Definition at line 55 of file zcross_extractor.H.

References coords.


Member Function Documentation

double BarycentricCoord::operator[] int  idx  )  const [inline]
 

Definition at line 59 of file zcross_extractor.H.

References coords.

double& BarycentricCoord::operator[] int  idx  )  [inline]
 

Definition at line 58 of file zcross_extractor.H.

References coords.

Wpt BarycentricCoord::to_Wpt const Bface f  )  const [inline]
 

Returns the position of Barycentric coordinate on the given face in world coordinates.

Definition at line 63 of file zcross_extractor.H.

References coords, Bvert::loc(), Bface::v1(), Bface::v2(), and Bface::v3().

Referenced by ZCrossSeg::get_end_pt(), and ZCrossSeg::get_start_pt().

Wvec BarycentricCoord::to_Wvec  )  const [inline]
 

Return the Barycentric coordinate store in a Wvec.

Definition at line 69 of file zcross_extractor.H.

References coords.


Member Data Documentation

double BarycentricCoord::coords[3] [private]
 

Definition at line 74 of file zcross_extractor.H.

Referenced by BarycentricCoord(), operator[](), to_Wpt(), and to_Wvec().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:44:19 2006 for jot by  doxygen 1.4.4