![]() |
Knight's Tour Generator
Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours
|
Rectangle. More...
#include <Structs.h>
Public Member Functions | |
CRect (int left, int right, int top, int bottom) | |
Constructor. More... | |
Public Attributes | |
int | m_nLeft = -1 |
Left-most horizontal co-ordinate. | |
int | m_nRight = -1 |
Right-most horizontal co-ordinate. | |
int | m_nTop = -1 |
Top-most vertical co-ordinate. | |
int | m_nBottom = -1 |
Bottom-most vertical co-ordinate. | |
A rectangle consists of the coordinates of its left, right, top, and bottom. Yes, I know that the Windows API has the RECT structure, but this will be cross-platform.
CRect::CRect | ( | int | left, |
int | right, | ||
int | top, | ||
int | bottom | ||
) |
The rectangle constructor.
left | Left-most horizontal co-ordinate. |
right | Right-most horizontal co-ordinate. |
top | Top-most vertical co-ordinate. |
bottom | Bottom-most vertical co-ordinate. |
Definition at line 91 of file Structs.cpp.