Struct RasterClampBorder
Clamp border policy.
struct RasterClampBorder;
Each outside coordinate is mapped to the nearest valid edge coordinate.
For one axis with extent N > 0:
c < 0 -> 0 c >= N -> N - 1 otherwise c
The policy is undefined for zero extent and an operation must reject such a request before attempting clamp mapping.
Example
Example selecting clamp border semantics.
import raster;
static assert(RasterClampBorder .kind == RasterBorderKind .clamp);