Classes | Functions

ipoint3.h File Reference

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

Go to the source code of this file.

Classes

class   IPoint3

Functions

GEOMEXPORT int  MaxComponent (const IPoint3 &)
GEOMEXPORT int  MinComponent (const IPoint3 &)
GEOMEXPORT std::ostream &  operator<< (std::ostream &, const IPoint3 &)
float  Length (const IPoint3 &v)

Function Documentation

GEOMEXPORT int MaxComponent ( const IPoint3 )
Remarks:
Returns the component with the maximum absolute value. 0=x, 1=y, 2=z.
GEOMEXPORT int MinComponent ( const IPoint3 )
Remarks:
Returns the component with the minimum absolute value. 0=x, 1=y, 2=z.
GEOMEXPORT std::ostream& operator<< ( std::ostream &  ,
const IPoint3  
)
float Length ( const IPoint3 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 108 of file ipoint3.h.

                                      { 
    return (float)sqrt((double)(v.x*v.x+v.y*v.y+v.z*v.z));
    }