getBounds

Calculates bounding box of a mesh.

@nogc nothrow pure
rect
getBounds
(
T
)
(
T[] mesh
)
if (
isVector!T
)

Parameters

mesh T[]

The mesh to get the bounds for.

Return Value

Type: rect

A rectangle enclosing the mesh.

Meta