Walls And Holes  1
array2dtools.h File Reference
#include <QSize>
#include <QSet>
#include <QPoint>
Include dependency graph for array2dtools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint qHash (const QPoint &key)
 
bool isPointInBounds (int x, int y, int width, int height)
 Returns true if the point is in bounds, false otherwise. More...
 
bool isPointInBounds (int x, int y, QSize size)
 
bool isPointInBounds (QPoint pt, QSize size)
 
QSet< QPoint > getValidNeighbors (int x, int y, int width, int height)
 Returns the coordinates of all (up to 8) in-bounds neighbors of the point. More...
 
QSet< QPoint > getValidNeighbors (int x, int y, QSize size)
 
QSet< QPoint > getValidNeighbors (QPoint pt, QSize size)
 

Function Documentation

◆ getValidNeighbors() [1/3]

QSet<QPoint> getValidNeighbors ( int  x,
int  y,
int  width,
int  height 
)

Returns the coordinates of all (up to 8) in-bounds neighbors of the point.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getValidNeighbors() [2/3]

QSet<QPoint> getValidNeighbors ( int  x,
int  y,
QSize  size 
)
Here is the call graph for this function:

◆ getValidNeighbors() [3/3]

QSet<QPoint> getValidNeighbors ( QPoint  pt,
QSize  size 
)
Here is the call graph for this function:

◆ isPointInBounds() [1/3]

bool isPointInBounds ( int  x,
int  y,
int  width,
int  height 
)

Returns true if the point is in bounds, false otherwise.

Here is the caller graph for this function:

◆ isPointInBounds() [2/3]

bool isPointInBounds ( int  x,
int  y,
QSize  size 
)
Here is the call graph for this function:

◆ isPointInBounds() [3/3]

bool isPointInBounds ( QPoint  pt,
QSize  size 
)
Here is the call graph for this function:

◆ qHash()

uint qHash ( const QPoint &  key)
inline