Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxPointR2 Class Reference

Class definition for points in R2 (real-value coordinates). More...

#include <HxPointR2.h>

List of all members.

Public Methods

 HxPointR2 ()
 Constructor. More...

 HxPointR2 (double d1, double d2)
 Constructor. More...

 HxPointR2 (const HxVec2Double &v)
 Copy constructor. More...

double x () const
 Get the x coordinate of the point. More...

double y () const
 Get the y coordinate of the point. More...

HxPointR2 add (const HxVectorR2 &arg) const
 Add the given vector to this point. More...

HxPointR2 sub (const HxVectorR2 &arg) const
 Subtract the given vector from this point. More...

STD_OSTREAM & put (STD_OSTREAM &) const
 Put the arrow on the given stream. More...

STD_OSTREAM & dump (HxPointR2 &) const
HxString toString () const

Friends

class HxVectorR2


Detailed Description

Class definition for points in R2 (real-value coordinates).


Constructor & Destructor Documentation

HxPointR2::HxPointR2   [inline]
 

Constructor.

00068                      : _data(0,0)
00069 {
00070 }

HxPointR2::HxPointR2 double    d1,
double    d2
[inline]
 

Constructor.

00073                                          : _data(d1, d2)
00074 {
00075 }

HxPointR2::HxPointR2 const HxVec2Double   v [inline]
 

Copy constructor.

00078                                           : _data(v)
00079 {
00080 }


Member Function Documentation

double HxPointR2::x   const [inline]
 

Get the x coordinate of the point.

00084 {
00085     return _data.x();
00086 }

double HxPointR2::y   const [inline]
 

Get the y coordinate of the point.

00090 {
00091     return _data.y();
00092 }

HxPointR2 HxPointR2::add const HxVectorR2   arg const
 

Add the given vector to this point.

00016 {
00017     return HxPointR2(_data + arg._data ); 
00018 
00019 }

HxPointR2 HxPointR2::sub const HxVectorR2   arg const
 

Subtract the given vector from this point.

00023 {
00024     return HxPointR2(_data - arg._data); 
00025 }

STD_OSTREAM & HxPointR2::put STD_OSTREAM &    os const [inline]
 

Put the arrow on the given stream.

00102 {
00103     return os << _data;
00104 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 14:19:06 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001