Knight's Tour Generator
Tourneys and the Fast Generation and Obfuscation of Closed Knight's Tours
Public Member Functions | Public Attributes | List of all members
CRect Struct Reference

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.
 

Detailed Description

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.

Definition at line 100 of file Structs.h.

Constructor & Destructor Documentation

◆ CRect()

CRect::CRect ( int  left,
int  right,
int  top,
int  bottom 
)

The rectangle constructor.

Parameters
leftLeft-most horizontal co-ordinate.
rightRight-most horizontal co-ordinate.
topTop-most vertical co-ordinate.
bottomBottom-most vertical co-ordinate.

Definition at line 91 of file Structs.cpp.