Geom Software - C++ Programming and Geometry Libraries
GEOM_WOF::Point3 Class Reference

3D Point

`#include <Point3.h>`

## Public Member Functions

Point3 (const double x_, const double y_, const double z_)
Constructor. More...

Point3 ()
Default constructor. More...

Point3 (const Point3 &p_)
Copy constructor. More...

Point3operator= (const Point3 &other)
operator=

~Point3 ()
Destructor.

double x () const
Get the x-coordinate. More...

double y () const
Get the y-coordinate. More...

double z () const
Get the z-coordinate. More...

void xyz (double &x_, double &y_, double &z_) const
Get the x-, y- and z-coordinate. More...

void addSelf (double &x, double &y, double &z) const
Add the point's coordinates to x,y,z. More...

bool operator< (const Point3 &p) const
Less than operator. More...

bool operator> (const Point3 &p) const
Greater than operator. More...

bool operator== (const Point3 &p) const
Equality operator. More...

bool operator!= (const Point3 &p) const
Inequality operator. More...

void set (const double x_, const double y_, const double z_)
Set the coordiantes. More...

void set (const Point3 &pnt)
Set the coordiantes. More...

Vector3 operator- (const Point3 &other) const
operator- More...

Point3 operator+ (const Vector3 &vec) const
operator+ More...

Point3 operator- (const Vector3 &vec) const
operator- More...

double coordX

double coordY

double coordZ

## Friends

class Dt2

std::ostream & operator<< (std::ostream &stream, const Point3 &pnt)

std::istream & operator>> (std::istream &stream, Point3 &pnt)

## ◆ Point3() [1/3]

 GEOM_WOF::Point3::Point3 ( const double x_, const double y_, const double z_ )
inline
Parameters
 x_ [in] x-coordinate y_ [in] y-coordinate z_ [in] z-coordinate

## ◆ Point3() [2/3]

 GEOM_WOF::Point3::Point3 ( )
inline

Coordinates are initialized to 0.

## ◆ Point3() [3/3]

 GEOM_WOF::Point3::Point3 ( const Point3 & p_ )
inline

## Member Function Documentation

 void GEOM_WOF::Point3::addSelf ( double & x, double & y, double & z ) const
inline
Parameters
 x,y,z [inout] are used to accumulate the point's coordinates

## ◆ operator!=()

 bool GEOM_WOF::Point3::operator!= ( const Point3 & p ) const
inline
Parameters
 p [in] is compared with *this

## ◆ operator+()

 Point3 GEOM_WOF::Point3::operator+ ( const Vector3 & vec ) const
inline
Returns
the point moved by `vec`

## ◆ operator-() [1/2]

 Vector3 GEOM_WOF::Point3::operator- ( const Point3 & other ) const
inline
Returns
the difference vector (*this - *other)

## ◆ operator-() [2/2]

 Point3 GEOM_WOF::Point3::operator- ( const Vector3 & vec ) const
inline
Returns
the point moved by `-vec`

## ◆ operator<()

 bool GEOM_WOF::Point3::operator< ( const Point3 & p ) const
inline
Parameters
 p [in] is compared with *this
Returns
true if *this < `p` or false otherwise

## ◆ operator==()

 bool GEOM_WOF::Point3::operator== ( const Point3 & p ) const
inline
Parameters
 p [in] is compared with *this

## ◆ operator>()

 bool GEOM_WOF::Point3::operator> ( const Point3 & p ) const
inline
Parameters
 p [in] is compared with *this
Returns
true if *this > `p` or false otherwise

## ◆ set() [1/2]

 void GEOM_WOF::Point3::set ( const double x_, const double y_, const double z_ )
inline
Parameters
 x_,y_,z_ [in] are the coordinates to be assigned

## ◆ set() [2/2]

 void GEOM_WOF::Point3::set ( const Point3 & pnt )
inline
Parameters
 pnt carries the coordinates to be assigned

## ◆ x()

 double GEOM_WOF::Point3::x ( ) const
inline
Returns
the x-coordinate

## ◆ xyz()

 void GEOM_WOF::Point3::xyz ( double & x_, double & y_, double & z_ ) const
inline
Parameters
 x_ [out] x-coordinate y_ [out] y-coordinate z_ [out] z-coordinate

## ◆ y()

 double GEOM_WOF::Point3::y ( ) const
inline
Returns
the y-coordinate

## ◆ z()

 double GEOM_WOF::Point3::z ( ) const
inline
Returns
the z-coordinate

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