This struct defines a set of parameters for rectangular regions.
More...
#include "../include/Coords.h"
|
int | init () |
|
| Coords () |
|
| Coords (float x1, float y1, float x2, float y2) |
|
int | set (float x1, float y1, float x2, float y2) |
|
int | print () |
|
|
float | xmin |
|
float | ymin |
|
float | xmax |
|
float | ymax |
|
float | xext |
|
float | yext |
|
This struct defines a set of parameters for rectangular regions.
- Author
- Dan Vietor
◆ Coords() [1/2]
Constructor. Initializes values
References init().
◆ Coords() [2/2]
Coords::Coords |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
Constructor. Sets the values given opposite points of rectangular region
- Parameters
-
x1 | X coordinate of first point |
y1 | Y coordinate of first point |
x2 | X coordinate of second point |
y2 | Y coordinate of second point |
◆ init()
◆ print()
Prints the class values to standard output
◆ set()
int Coords::set |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
Sets the values given opposite points of rectangular region
- Parameters
-
x1 | X coordinate of first point |
y1 | Y coordinate of first point |
x2 | X coordinate of second point |
y2 | Y coordinate of second point |
The documentation for this struct was generated from the following files: