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
Spl_U3dPoint Class Reference

#include <base_splines.hpp>

Public Member Functions

 Spl_U3dPoint ()
 
 Spl_U3dPoint (const Spl_U3dPoint &p)
 
 Spl_U3dPoint (double x, double y, double z)
 
Spl_U3dPointoperator= (const Spl_U3dPoint &p)
 
int operator== (const Spl_U3dPoint &) const
 
int operator!= (const Spl_U3dPoint &) const
 
Spl_U3dPoint operator+ (Spl_U3dPoint)
 
Spl_U3dPoint operator- (Spl_U3dPoint)
 
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 fX
 
double fY
 
double fZ
 

Friends

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

Detailed Description

3D point class

Constructor & Destructor Documentation

Spl_U3dPoint::Spl_U3dPoint ( )
inline

Create point at origin of coordinates system.

Spl_U3dPoint::Spl_U3dPoint ( const Spl_U3dPoint p)
inline

Create point as a copy of given one.

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

Create point with given coordinates.

Member Function Documentation

double Spl_U3dPoint::getX ( ) const
inline

Get x coordinate.

double Spl_U3dPoint::getY ( ) const
inline

Get y coordinate.

double Spl_U3dPoint::getZ ( ) const
inline

Get z coordinate.

int Spl_U3dPoint::operator!= ( const Spl_U3dPoint ) const

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

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

Assign the point coordinates from another one.

int Spl_U3dPoint::operator== ( const Spl_U3dPoint ) const

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

void Spl_U3dPoint::setX ( double  x)
inline

Set x coordinate separately.

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

Set new coordinates.

void Spl_U3dPoint::setY ( double  y)
inline

Set y coordinate separately.

void Spl_U3dPoint::setZ ( double  z)
inline

Set z coordinate separately.

Member Data Documentation

double Spl_U3dPoint::fX
protected

Cartesian coordinates of the point.


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