![]() |
Dragonfly 2.2
A text-based game engine
|
Line.h - a line segment. More...
#include <Line.h>
Public Member Functions | |
Line (Position init_p1, Position init_p2) | |
Create line segment from p1 to p2. | |
Line () | |
Default line segment is at (0,0) | |
Position | getP1 () |
Get first endpoint. | |
void | setP1 (Position new_p1) |
Set first endpoint. | |
Position | getP2 () |
Get second endpoint. | |
void | setP2 (Position new_p2) |
Set second endpoint. | |
Protected Attributes | |
Position | p1 |
first endpoint | |
Position | p2 |
second endpoint |
Line.h - a line segment.