Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
PRectangle2dC::PRectangle2dC(void)
PRectangle2dC::PRectangle2dC(Point2dC,Point2dC)
PRectangle2dC::PRectangle2dC(Point2dC,RealT,RealT)
PRectangle2dC::PRectangle2dC(RealT,RealT,RealT,RealT)
PRectangle2dC::Origin(void)
PRectangle2dC::Origin(void) const
PRectangle2dC::End(void)
PRectangle2dC::End(void) const
PRectangle2dC::Left(void) const
PRectangle2dC::Right(void) const
PRectangle2dC::Top(void) const
PRectangle2dC::Bottom(void) const
PRectangle2dC::Contains(const Point2dC &)
PRectangle2dC::SizeX(void) const
PRectangle2dC::SizeY(void) const
PRectangle2dC::Size(void) const
PRectangle2dC::Involve(const Point2dC &)
PRectangle2dC::Involve(const PRectangle2dC &)
PRectangle2dC::operator==(const PRectangle2dC &)
PRectangle2dC::operator!=(const PRectangle2dC &)
PRectangle2dC
 
Rectangle, with sides parrallel to axies.
 
include "amma/PRect2d.hh"
User Level:Default
Library:Mag2
Example:exMat2d.cc
Section:Geometry.2-D
In Scope:std

Variables:

Point2dC origin;
Origin an end point of the rectangle.

Point2dC end;
Origin an end point of the rectangle.

Methods:
PRectangle2dC()
Default constructor.
Creates an undefined rectangle.

PRectangle2dC(Point2dC org,Point2dC nend)
Constructor.

PRectangle2dC(Point2dC org,RealT xs,RealT ys)
Constructor.

PRectangle2dC(RealT sx,RealT ex,RealT sy,RealT ey)
Constructor.

Point2dC & Origin()
Origin of rectangle.

const Point2dC & Origin() const
Origin of rectangle.

Point2dC & End()
Origin of rectangle.

const Point2dC & End() const
Origin of rectangle.

RealT Left() const
Left side.

RealT Right() const
Left side.

RealT Top() const
Left side.

RealT Bottom() const
Left side.

BooleanT Contains(const Point2dC & pnt)
Is point within rectangle.

RealT SizeX() const
Size of the X side of the rectangle.

RealT SizeY() const
Size of the Y side of the rectangle.

Vector2dC Size() const
Size of rectangle.

void Involve(const Point2dC & pnt)
Extended rectangle such that it contains point 'pnt'.

void Involve(const PRectangle2dC & rect)
Extended rectangle such that it contains all points in 'rect'.

BooleanT operator==(const PRectangle2dC & oth)
Compair.
(Does make sense when checking for changes.)

BooleanT operator!=(const PRectangle2dC & oth)
Compair.
(Does make sense when checking for changes.)


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001