oln::fpoint2d< F > Class Template Reference

#include <fpoint2d.hh>

Collaboration diagram for oln::fpoint2d< F >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef fpoint2d< F > exact_type
typedef fpoint2d< F > self_type
typedef fdpoint2d< F > dpoint_type

Public Member Functions

 fpoint2d (F x, F y)
 fpoint2d ()
row () const
 Give the value of the nth coordinate of the point.
F & row ()
col () const
F & col ()
nth (const unsigned dim) const
F & nth (const unsigned dim)
 Return a reference to the nth coordinate of the point.
exact_type operator- () const
exact_typeoperator+= (const dpoint_type &dp)
exact_typeoperator-= (const dpoint_type &dp)
dpoint_type operator- (const self_type &p) const
exact_type operator- (const dpoint_type &dp) const
dpoint_type operator+ (const self_type &p) const
exact_type operator+ (const dpoint_type &dp) const
bool operator== (const self_type &p) const
 Test if p and the current point have the same coordinates.
bool operator!= (const self_type &p) const
 Test if p and the current point do not have the same coordinates.

Detailed Description

template<class F>
class oln::fpoint2d< F >

Olena Floating class point2d.

Definition at line 65 of file fpoint2d.hh.


Member Function Documentation

template<class F>
bool oln::fpoint2d< F >::operator== ( const self_type p  )  const [inline]

Test if p and the current point have the same coordinates.

Returns:
True if p and the current point have the same coordinates, false otherwise.

Definition at line 189 of file fpoint2d.hh.

References oln::fpoint2d< F >::nth().

00190     {
00191       return p.nth(0) == coord_[0] && p.nth(1) == coord_[1];
00192     }

template<class F>
bool oln::fpoint2d< F >::operator!= ( const self_type p  )  const [inline]

Test if p and the current point do not have the same coordinates.

Returns:
False if p and the current point have the same coordinates, true otherwise.

Definition at line 203 of file fpoint2d.hh.

References oln::fpoint2d< F >::nth().

00204     {
00205       return !(p.nth(0) == coord_[0] && p.nth(1) == coord_[1]);
00206     }


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 20:24:04 2007 for Olena by  doxygen 1.5.1