Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


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

Vector Class Reference

List of all members.

Public Member Functions

 Vector (float init_x, float init_y)
 Vector ()
 Default vector is (0,0).
float getX ()
 Get horizontal coordinate.
void setX (float new_x)
 Set horizontal coordinate.
float getY ()
 Get vertical coordinate.
void setY (float new_y)
 Set vertical coordinate.

Protected Attributes

float x
 Horizontal coordinate in 2d world.
float y
 Vertical coordinate in 2d world.

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