Files Classes Functions Hierarchy
#include <pointsurface.h>
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. | |
Definition at line 142 of file pointsurface.h.
| 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 }
| point3<double> pointsurfaceParallelogram::p0 |
| point3<double> pointsurfaceParallelogram::pu |
| point3<double> pointsurfaceParallelogram::pv |
1.5.8