Conjecture::Coord Class Reference

#include <Coord.h>

Inheritance diagram for Conjecture::Coord:

Conjecture::Root List of all members.

Detailed Description

A simple 2-D Euclidean point.

This class is used both for Image coordinates (x/y), and for Image dimensions (width/height).

The 'x' and 'y' fields are public.


Public Member Functions

 Coord (u2 x, u2 y)
 Coord (const Coord &coord)
std::string str (int prec=2) const
Coord operator+ (const Coord &c) const
Coord operator+ (u2 val) const
Coord & operator+= (const Coord &c)
Coord & operator+= (u2 val)
Coord operator- (const Coord &c) const
Coord operator- (u2 val) const
Coord & operator-= (const Coord &c)
Coord & operator-= (u2 val)
bool operator< (const Coord &c) const
bool withinBounds (const Coord &topleft, const Coord &bottomright) const

Public Attributes

u2 x
u2 y


Member Function Documentation

bool Conjecture::Coord::operator< (  const Coord &  c  )  const [inline]
 

Returns true if receiver has smaller *area* than argument. Is this the semantics we want?

bool Conjecture::Coord::withinBounds (  const Coord &  topleft,
const Coord &  bottomright
)  const
 

Returns true if this Coord is within the region formed by 'topleft' and 'bottomright'.


The documentation for this class was generated from the following files:
Generated on Thu Jun 15 19:56:11 2006 for Conjecture by  doxygen 1.4.6