#include <Line.h>
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 () |
Point * | getPoint1 () |
Point * | getPoint2 () |
void | recenterLine (int x, int y) |
|
|
|
|
|
|
|
|
|
returns the angle of the line (range is 0-180) |
|
returns the length of the line |
|
returns point 1 (arbitrarily assigned) |
|
returns point 2 (arbitrarily assigned) |
|
|
|
prints the line info to stderr |
|
adds the x and y values given here to each point in the line |