This structure defines a vector quantity (x,y). More...
#include "../include/Vect.h"
Public Member Functions | |
| Vect () | |
| Vect (float rx, float ry) | |
| int | init () |
| int | set (float rx, float ry) |
| int | add (Vect &v1) |
| int | sub (Vect &v1) |
| int | scale (float sc) |
| int | print () |
Public Attributes | |
| float | x |
| float | y |
This structure defines a vector quantity (x,y).
| Vect::Vect | ( | ) |
Constructor. Initializes class values
References init().
| Vect::Vect | ( | float | rx, | |
| float | ry | |||
| ) |
Constructor. Sets the values
| rx | X value | |
| ry | Y value |
| int Vect::init | ( | ) |
| int Vect::set | ( | float | rx, | |
| float | ry | |||
| ) |
Sets the values
| rx | X value | |
| ry | Y value |
1.6.1