VectorEntity  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions
vctl::MCPoint3D Class Reference

Class encapsulates a point in 3D space. More...

#include <mcpoint3d.h>

Inheritance diagram for vctl::MCPoint3D:
Inheritance graph
[legend]

List of all members.

Public Types

typedef MCCoordinate3D< doubletCoordinates
 Base class.

Public Member Functions

double Distance (const MCPoint3D &b2) const
 Returns Euclidean distance between this and a given point.
double GetMultXYZ () const
 Returns coordinates product.
void GetPoint3D (MCPoint3D &_point) const
 Initializes coordinates of a given point.
double GetSumXYZ () const
 Returns sum of coordinates.
 MCPoint3D ()
 Default constructor.
 MCPoint3D (const double &_x, const double &_y, const double &_z)
 Constructor that initializes point coordinates.
 MCPoint3D (MCPoint3D *_point)
 Constructor that initializes point coordinates.
 MCPoint3D (const MCPoint3D &_point)
 Constructor that initializes point coordinates.
MCPoint3Doperator= (const MCPoint3D &p)
 Assignment operator.
void SetPoint3D (const MCPoint3D &_point)
 Copies coordinates from a given point.
double SquareDistance (const MCPoint3D &b2) const
 Returns square root of the distance between this and a given point.
 ~MCPoint3D ()
 Destructor.

Static Public Member Functions

static double Distance (const MCPoint3D &b1, const MCPoint3D &b2)
 Returns distance between two points.
static double SquareDistance (const MCPoint3D &b1, const MCPoint3D &b2)
 Returns distance square root.

Detailed Description

Class encapsulates a point in 3D space.


Member Typedef Documentation

Base class.


Constructor & Destructor Documentation

Default constructor.

  • Initializes all coordinates to zero.
vctl::MCPoint3D::MCPoint3D ( const double _x,
const double _y,
const double _z 
) [inline]

Constructor that initializes point coordinates.

vctl::MCPoint3D::MCPoint3D ( MCPoint3D _point) [inline]

Constructor that initializes point coordinates.

vctl::MCPoint3D::MCPoint3D ( const MCPoint3D _point) [inline]

Constructor that initializes point coordinates.

Destructor.


Member Function Documentation

double vctl::MCPoint3D::Distance ( const MCPoint3D b2) const [inline]

Returns Euclidean distance between this and a given point.

static double vctl::MCPoint3D::Distance ( const MCPoint3D b1,
const MCPoint3D b2 
) [inline, static]

Returns distance between two points.

double vctl::MCPoint3D::GetMultXYZ ( ) const [inline]

Returns coordinates product.

void vctl::MCPoint3D::GetPoint3D ( MCPoint3D _point) const [inline]

Initializes coordinates of a given point.

double vctl::MCPoint3D::GetSumXYZ ( ) const [inline]

Returns sum of coordinates.

MCPoint3D& vctl::MCPoint3D::operator= ( const MCPoint3D p) [inline]

Assignment operator.

void vctl::MCPoint3D::SetPoint3D ( const MCPoint3D _point) [inline]

Copies coordinates from a given point.

double vctl::MCPoint3D::SquareDistance ( const MCPoint3D b2) const [inline]

Returns square root of the distance between this and a given point.

static double vctl::MCPoint3D::SquareDistance ( const MCPoint3D b1,
const MCPoint3D b2 
) [inline, static]

Returns distance square root.


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