This class defines a set of parameters for rectangular regions. More...
#include "../include/Coords.h"
Public Member Functions | |
| int | init () |
| Coords () | |
| Coords (float x1, float y1, float x2, float y2) | |
| int | set (float x1, float y1, float x2, float y2) |
| int | print () |
Friends | |
| class | GTran |
This class defines a set of parameters for rectangular regions.
| Coords::Coords | ( | ) |
Constructor. Initializes values
References init().
| Coords::Coords | ( | float | x1, | |
| float | y1, | |||
| float | x2, | |||
| float | y2 | |||
| ) |
Constructor. Sets the values given opposite points of rectangular region
| x1 | X coordinate of first point | |
| y1 | Y coordinate of first point | |
| x2 | X coordinate of second point | |
| y2 | Y coordinate of second point |
| int Coords::init | ( | ) |
| int Coords::print | ( | ) |
Prints the class values to standard output
| int Coords::set | ( | float | x1, | |
| float | y1, | |||
| float | x2, | |||
| float | y2 | |||
| ) |
Sets the values given opposite points of rectangular region
| x1 | X coordinate of first point | |
| y1 | Y coordinate of first point | |
| x2 | X coordinate of second point | |
| y2 | Y coordinate of second point |
1.6.1