Public Member Functions | Public Attributes | List of all members
mirtk::Point Class Reference

#include <Point.h>

Inheritance diagram for mirtk::Point:
Inheritance graph
Collaboration diagram for mirtk::Point:
Collaboration graph

Public Member Functions

double Distance () const
 Distance from origin.
 
double Distance (const Point &) const
 Distance from point.
 
 operator const double * () const
 Cast to C array pointer.
 
 operator double * ()
 Cast to C array pointer.
 
int operator!= (const Point &) const
 Comparison operator != (if USE_STL is defined, negate == operator)
 
double & operator() (int i)
 Get reference to i-th point coordinate.
 
const double & operator() (int i) const
 Get const reference to i-th point coordinate.
 
Point operator* (const Point &) const
 Return result of point multiplication.
 
Point operator* (const Matrix &) const
 Return result from Matrix multiplication.
 
Pointoperator*= (const Point &)
 Multiplication operator for point.
 
Pointoperator*= (double)
 Multiplication with double.
 
Pointoperator*= (const Vector3 &)
 Multiplication operator for vectors (componentwise)
 
Pointoperator*= (const Vector &)
 Multiplication operator for vectors (componentwise)
 
Pointoperator*= (const Matrix &)
 Point multiplication operator for matrices.
 
Point operator+ (const Point &) const
 Return result of point addition.
 
Pointoperator+= (const Point &)
 Addition operator for point.
 
Pointoperator+= (double)
 Addition of double.
 
Pointoperator+= (const Vector3 &)
 Addition operator for vectors.
 
Pointoperator+= (const Vector &)
 Addition operator for vectors.
 
Point operator- (const Point &) const
 Return result of point substraction.
 
Pointoperator-= (const Point &)
 Substraction operator for point.
 
Pointoperator-= (double)
 Substraction of double.
 
Pointoperator-= (const Vector3 &)
 Substraction operator for vectors.
 
Pointoperator-= (const Vector &)
 Substraction operator for vectors.
 
Point operator/ (const Point &) const
 Return result of point division.
 
Pointoperator/= (const Point &)
 Division operator for point.
 
Pointoperator/= (double)
 Division by double.
 
Pointoperator/= (const Vector3 &)
 Division operator for vectors (componentwise)
 
Pointoperator/= (const Vector &)
 Division operator for vectors (componentwise)
 
int operator< (const Point &) const
 Comparison operator <.
 
Pointoperator= (const Point &)
 Copy operator for point.
 
Pointoperator= (double)
 Assign scalar value to all coordinates.
 
Pointoperator= (const Vector3 &)
 Copy operator for vectors.
 
Pointoperator= (const Vector &)
 Copy operator for vectors.
 
int operator== (const Point &) const
 Comparison operator ==.
 
int operator> (const Point &) const
 Comparison operator >
 
double & operator[] (int i)
 Get reference to i-th point coordinate.
 
const double & operator[] (int i) const
 Get const reference to i-th point coordinate.
 
 Point ()
 Constructor.
 
 Point (double, double, double)
 Constructor with three coordinates.
 
 Point (const double [3])
 Constructor with three coordinates.
 
 Point (const Point &)
 Constructor with Point.
 
 Point (const Vector3 &)
 Constructor with Vector.
 
 Point (const Vector &)
 Constructor with Vector.
 
double SquaredDistance () const
 Squared distance from origin.
 
double SquaredDistance (const Point &) const
 Squared distance from point.
 
virtual ~Point ()
 Default destructor.
 

Public Attributes

double _x
 x coordinate of Point
 
double _y
 y coordinate of Point
 
double _z
 z coordinate of Point
 

Detailed Description

3D point.

Definition at line 42 of file Point.h.


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