Function Region2D.empty

Returns true if either extent is zero.

bool empty() pure nothrow @nogc @safe const;

Example

Example checking an empty region.

import raster;

assert(Region2D(4, 7, 0, 3).empty);
assert(!Region2D(4, 7, 2, 3).empty);