QtCraft API C++ classes QML types Handbook

QcBlockBox Struct

A box of block cells from low to high, both corners inclusive (decision E-975). More...

Header: #include <common/core/QcBlockBox.h>

Public Functions

bool contains(QcBlockPos pos) const
bool intersects(const QcBlockBox &other) const

Public Variables

QcBlockPos high
QcBlockPos low

Detailed Description

Member Function Documentation

bool QcBlockBox::contains(QcBlockPos pos) const

Returns whether the cell pos lies in the box.

bool QcBlockBox::intersects(const QcBlockBox &other) const

Returns whether other shares at least one cell with this box.

Member Variable Documentation

QcBlockPos QcBlockBox::high

The corner with the highest x, y and z.

QcBlockPos QcBlockBox::low

The corner with the lowest x, y and z.