#include "GeomExport.h"
#include "maxheap.h"
#include "point3.h"
#include "assert1.h"
#include <iosfwd>
Classes | |
class | DPoint3 |
class DPoint3 Description: This class describes a 3D point using double precision x, y and z coordinates. More... | |
class | DRay |
Functions | |
double | Length (const DPoint3 &) |
Returns the 'Length' of the point. More... | |
int | MaxComponent (const DPoint3 &) |
Returns the component with the maximum absolute value. More... | |
int | MinComponent (const DPoint3 &) |
Returns the component with the minimum absolute value. More... | |
DPoint3 | Normalize (const DPoint3 &) |
Returns a unit vector. More... | |
DPoint3 | operator* (double, const DPoint3 &) |
DPoint3 | operator* (const DPoint3 &, double) |
DPoint3 | operator/ (const DPoint3 &, double) |
std::ostream & | operator<< (std::ostream &, const DPoint3 &) |
DPoint3 | CrossProd (const DPoint3 &a, const DPoint3 &b) |
Returns the cross product of two DPoint3s. More... | |
double | DotProd (const DPoint3 &a, const DPoint3 &b) |
Returns the dot product of two DPoint3s. More... | |
|
inline |
Returns the 'Length' of the point.
This is sqrt(v.x*v.x+v.y*v.y+v.z*v.z)
Returns the component with the maximum absolute value.
0=x, 1=y, 2=z.
Returns the component with the minimum absolute value.
0=x, 1=y, 2=z.
std::ostream& operator<< | ( | std::ostream & | , |
const DPoint3 & | |||
) |
Returns the cross product of two DPoint3s.