Classes | Functions

dpoint3.h File Reference

#include "GeomExport.h"
#include "maxheap.h"
#include "point3.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class   DPoint3
  class DPoint3 More...

Functions

GEOMEXPORT double  Length (const DPoint3 &)
GEOMEXPORT int  MaxComponent (const DPoint3 &)
GEOMEXPORT int  MinComponent (const DPoint3 &)
GEOMEXPORT DPoint3  Normalize (const DPoint3 &)
GEOMEXPORT DPoint3  operator* (double, const DPoint3 &)
GEOMEXPORT DPoint3  operator* (const DPoint3 &, double)
GEOMEXPORT DPoint3  operator/ (const DPoint3 &, double)
GEOMEXPORT std::ostream &  operator<< (std::ostream &, const DPoint3 &)
GEOMEXPORT DPoint3  CrossProd (const DPoint3 &a, const DPoint3 &b)
GEOMEXPORT double  DotProd (const DPoint3 &a, const DPoint3 &b)

Function Documentation

double Length ( const DPoint3 v ) [inline]
Remarks:
Returns the 'Length' of the point. This is sqrt(v.x*v.x+v.y*v.y+v.z*v.z)

Definition at line 116 of file dpoint3.h.

                                       {    
    return (double)sqrt(v.x*v.x+v.y*v.y+v.z*v.z);
    }
GEOMEXPORT int MaxComponent ( const DPoint3 )
Remarks:
Returns the component with the maximum absolute value. 0=x, 1=y, 2=z.
GEOMEXPORT int MinComponent ( const DPoint3 )
Remarks:
Returns the component with the minimum absolute value. 0=x, 1=y, 2=z.
GEOMEXPORT DPoint3 Normalize ( const DPoint3 )
Remarks:
Returns a unit vector. This is a DPoint3 with each component divided by the point Length().
DPoint3 operator* ( double  f,
const DPoint3 a 
) [inline]

Definition at line 152 of file dpoint3.h.

                                                     {
    return(DPoint3(a.x*f, a.y*f, a.z*f));
    }
DPoint3 operator* ( const DPoint3 a,
double  f 
) [inline]

Definition at line 156 of file dpoint3.h.

                                                     {
    return(DPoint3(a.x*f, a.y*f, a.z*f));
    }
DPoint3 operator/ ( const DPoint3 a,
double  f 
) [inline]

Definition at line 160 of file dpoint3.h.

                                                     {
    return(DPoint3(a.x/f, a.y/f, a.z/f));
    }
GEOMEXPORT std::ostream& operator<< ( std::ostream &  ,
const DPoint3  
)
GEOMEXPORT DPoint3 CrossProd ( const DPoint3 a,
const DPoint3 b 
)
Remarks:
Returns the cross product of two DPoint3s.
GEOMEXPORT double DotProd ( const DPoint3 a,
const DPoint3 b 
)
Remarks:
Returns the dot product of two DPoint3s.