Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: Line Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Protected Attributes

Line Class Reference

Line.h - a line segment. More...

#include <Line.h>

List of all members.

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

Detailed Description

Line.h - a line segment.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends