sideTop

Get a reference to the left, right, top or bottom side of the given side array.

@safe ref
inout(ElementType!T)
sideTop
(
T
)
(
return ref inout T sides
)

Examples

uint[4] sides = [8, 0, 4, 2];

assert(sides.sideRight == 0);

sides.sideRight = 8;
sides.sideBottom = 4;

assert(sides == [8, 8, 4, 4]);

Meta