UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | Friends | List of all members
U3dPoint Class Reference

#include <u3d_point.hpp>

Public Member Functions

 U3dPoint ()
 
 U3dPoint (const U3dPoint &p)
 
 U3dPoint (double x, double y, double z)
 
U3dPointoperator= (const U3dPoint &p)
 
bool operator== (const U3dPoint &) const
 
bool operator!= (const U3dPoint &) const
 
U3dPoint operator+ (U3dPoint) const
 
U3dPoint operator- (U3dPoint) const
 
double getX () const
 
double getY () const
 
double getZ () const
 
void setXYZ (double x, double y, double z)
 
void setX (double x)
 
void setY (double y)
 
void setZ (double z)
 
 U3dPoint ()
 
 U3dPoint (const U3dPoint &p)
 
 U3dPoint (double x, double y, double z)
 
U3dPointoperator= (const U3dPoint &p)
 
bool operator== (const U3dPoint &) const
 
bool operator!= (const U3dPoint &) const
 
U3dPoint operator+ (U3dPoint) const
 
U3dPoint operator- (U3dPoint) const
 
double getX () const
 
double getY () const
 
double getZ () const
 
void setXYZ (double x, double y, double z)
 
void setX (double x)
 
void setY (double y)
 
void setZ (double z)
 

Protected Attributes

double m_X
 
double m_Y
 
double m_Z
 
double fX
 
double fY
 
double fZ
 

Friends

U3dPoint operator* (int, U3dPoint)
 
U3dPoint operator* (U3dPoint, int)
 
U3dPoint operator* (double, U3dPoint)
 
U3dPoint operator* (U3dPoint, double)
 
U3dPoint operator/ (U3dPoint, int)
 
U3dPoint operator/ (U3dPoint, double)
 
U3dPoint operator* (int, U3dPoint)
 
U3dPoint operator* (U3dPoint, int)
 
U3dPoint operator* (double, U3dPoint)
 
U3dPoint operator* (U3dPoint, double)
 
U3dPoint operator/ (U3dPoint, int)
 
U3dPoint operator/ (U3dPoint, double)
 

Detailed Description

3D point class

Constructor & Destructor Documentation

U3dPoint::U3dPoint ( )
inline

Create point at origin of coordinates system.

U3dPoint::U3dPoint ( const U3dPoint p)
inline

Create point as a copy of given one.

U3dPoint::U3dPoint ( double  x,
double  y,
double  z 
)
inline

Create point with given coordinates.

U3dPoint::U3dPoint ( )

Create point at origin of coordinates system.

U3dPoint::U3dPoint ( const U3dPoint p)

Create point as a copy of given one.

U3dPoint::U3dPoint ( double  x,
double  y,
double  z 
)

Create point with given coordinates.

Member Function Documentation

double U3dPoint::getX ( ) const

Get x coordinate.

double U3dPoint::getX ( ) const
inline

Get x coordinate.

double U3dPoint::getY ( ) const

Get y coordinate.

double U3dPoint::getY ( ) const
inline

Get y coordinate.

double U3dPoint::getZ ( ) const

Get z coordinate.

double U3dPoint::getZ ( ) const
inline

Get z coordinate.

bool U3dPoint::operator!= ( const U3dPoint ) const

Returns false, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)

bool U3dPoint::operator!= ( const U3dPoint ) const

Returns false, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)

U3dPoint& U3dPoint::operator= ( const U3dPoint p)

Assign the point coordinates from another one.

U3dPoint & U3dPoint::operator= ( const U3dPoint p)
inline

Assign the point coordinates from another one.

bool U3dPoint::operator== ( const U3dPoint ) const

Returns true, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)

bool U3dPoint::operator== ( const U3dPoint ) const

Returns true, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)

void U3dPoint::setX ( double  x)

Set x coordinate separately.

void U3dPoint::setX ( double  x)
inline

Set x coordinate separately.

void U3dPoint::setXYZ ( double  x,
double  y,
double  z 
)

Set new coordinates.

void U3dPoint::setXYZ ( double  x,
double  y,
double  z 
)
inline

Set new coordinates.

void U3dPoint::setY ( double  y)

Set y coordinate separately.

void U3dPoint::setY ( double  y)
inline

Set y coordinate separately.

void U3dPoint::setZ ( double  z)

Set z coordinate separately.

void U3dPoint::setZ ( double  z)
inline

Set z coordinate separately.

Member Data Documentation

double U3dPoint::fX
protected

Cartesian coordinates of the point.

double U3dPoint::m_X
protected

Cartesian coordinates of the point.


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