Shape.Square

Create a square.

struct Shape(T : float)
@safe nothrow pure static
Square
(,
T len
)
if (
isNumeric!T &&
isMutable!T
&&
isSigned!T
)

Parameters

pos Vector!T

Square position.

len T

Square length;

Return Value

Type: Shape!T

Square (ShapeType: Rectangle).

Meta