Shape.Multi

Collects several figures into one.

struct Shape(T : float)
@safe nothrow pure static
Multi
(,
Vector!T pos = vec!T(0, 0)
)
if (
isNumeric!T &&
isMutable!T
&&
isSigned!T
)

Parameters

shapes Shape!T[]

A collection of figures.

pos Vector!T

The relative position of such a figure.

Return Value

Type: Shape!T

A shapes assembled from many shapes.

Examples

auto multi = Shape.Mutli([
    Shape.Line(Vecf(0,0), Vecf(32,32)),
    Shape.Rectangle(Vecf(32,0), Vecf(64, 32)),
    ...
]);

Meta