five-on-it / apps/tools/src/kit-library / pieceBounds
Function: pieceBounds()
pieceBounds(
vertices):object
Defined in: apps/tools/src/kit-library.ts:65
The bounding box of a mesh's vertices (three numbers each, the game's frame), rounded to the centimetre; a mesh with no vertex is a point at its origin.
Parameters
vertices
readonly number[]
Returns
object
max
max:
Vec3
min
min:
Vec3