Main Page | Namespace List | Compound List | File List | Compound Members | File Members

Line Class Reference

#include <Line.h>

List of all members.

Public Member Functions

 Line ()
 Line (Point *p1In, Point *p2In)
 Line (Point *p1In, Point *p2In, int i)
 ~Line ()
bool inAngleRange (double start_angle, double stop_angle)
double getAngle ()
double getLength ()
void printLine ()
PointgetPoint1 ()
PointgetPoint2 ()
void recenterLine (int x, int y)


Constructor & Destructor Documentation

Line::Line  ) 
 

Line::Line Point p1In,
Point p2In
 

Line::Line Point p1In,
Point p2In,
int  i
 

Line::~Line  ) 
 


Member Function Documentation

double Line::getAngle  ) 
 

returns the angle of the line (range is 0-180)

double Line::getLength  ) 
 

returns the length of the line

Point * Line::getPoint1  ) 
 

returns point 1 (arbitrarily assigned)

Point * Line::getPoint2  ) 
 

returns point 2 (arbitrarily assigned)

bool Line::inAngleRange double  start_angle,
double  stop_angle
 

void Line::printLine  ) 
 

prints the line info to stderr

void Line::recenterLine int  x,
int  y
 

adds the x and y values given here to each point in the line


The documentation for this class was generated from the following files:
Generated on Thu Sep 4 14:59:32 2003 for Content-Based Image Retrieval by doxygen 1.3.3