Main Page   Class Hierarchy   Compound List   File List   Compound Members  

freecloth::GePoint Class Reference

A class for 3D points. More...

#include <freecloth/geom/gePoint.h>

List of all members.

Public Member Functions

 GePoint (Float x, Float y, Float z)
 GePoint (const GePoint &a, const GePoint &b, Float fracA)
 Construct from linear combination. Result = fracA * a + (1-fracA) * b.

 GePoint (const GePoint &a, const GePoint &b, const GePoint &c, Float fracA, Float fracB)
GePoint & operator+= (const GeVector &)
GePoint & operator-= (const GeVector &)
GePoint operator+ (const GeVector &) const
GePoint operator- (const GeVector &) const
GeVector operator- (const GePoint &) const
bool operator== (const GePoint &) const
bool operator!= (const GePoint &) const
Float operator[] (UInt32) const
Float & operator[] (UInt32)

Public Attributes

Float _x
Float _y
Float _z

Static Public Attributes

const CompX _compX
const CompY _compY
const CompZ _compZ
const GePoint NIL
const GePoint ZERO


Detailed Description

A class for 3D points.

In keeping with the principles of affine spaces, we distinguish between vectors and points, which represent direction and position, respectively.

Definition at line 41 of file gePoint.h.


Constructor & Destructor Documentation

freecloth::GePoint::GePoint const GePoint &    a,
const GePoint &    b,
const GePoint &    c,
Float    fracA,
Float    fracB
 

Construct from linear combination. fracA and fracB constitute two of three barycentric co-ordinates; (fracA,fracB,1-fracA-fracB) are the full three.

Definition at line 48 of file gePoint.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 15:58:47 2003 for Freecloth by doxygen1.3-rc3