proj home

Files   Classes   Functions   Hierarchy  

pointsurfaceParallelogram Class Reference

Parallelogram in 3D space with unit coordinates. More...

#include <pointsurface.h>

Collaboration diagram for pointsurfaceParallelogram:

List of all members.

Public Member Functions

 pointsurfaceParallelogram (point3< double > const &p0_, point3< double > const &p1, point3< double > const &p2)
 From the three points construct the parallelograms arms.
void operator() (bool &accept, double &x, double &y, double &z, doublec u, doublec v) const
 Given a point in a unit square map to a point on the parallelogram in 3D space.

Public Attributes

point3< double > p0
 The origin.
point3< double > pu
 The arm of the u-axis.
point3< double > pv
 The arm of the v-axis.


Detailed Description

Parallelogram in 3D space with unit coordinates.

Definition at line 142 of file pointsurface.h.


Constructor & Destructor Documentation

pointsurfaceParallelogram::pointsurfaceParallelogram ( point3< double > const &  p0_,
point3< double > const &  p1,
point3< double > const &  p2 
) [inline]

From the three points construct the parallelograms arms.

Definition at line 157 of file pointsurface.h.

00162     : p0(p0_), pu(p1-p0), pv(p2-p0) {}


Member Function Documentation

void pointsurfaceParallelogram::operator() ( bool accept,
double &  x,
double &  y,
double &  z,
doublec  u,
doublec  v 
) const [inline]

Given a point in a unit square map to a point on the parallelogram in 3D space.

Definition at line 167 of file pointsurface.h.

References p0, pu, pv, point3< T >::x, point3< T >::y, and point3< T >::z.

00175   {
00176     accept = true;
00177     x = p0.x + pu.x*u + pv.x*v;
00178     y = p0.y + pu.y*u + pv.y*v;
00179     z = p0.z + pu.z*u + pv.z*v;
00180   }


Member Data Documentation

The origin.

Definition at line 147 of file pointsurface.h.

Referenced by operator()().

The arm of the u-axis.

Definition at line 150 of file pointsurface.h.

Referenced by operator()().

The arm of the v-axis.

Definition at line 152 of file pointsurface.h.

Referenced by operator()().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:10 2011 for Chelton Evans Source by  doxygen 1.5.8