computeCorners

Computes the eight corners of an oriented bounding box. The corners are ordered by (-X, -Y, -Z), (-X, -Y, +Z), (-X, +Y, -Z), (-X, +Y, +Z), (+X, -Y, -Z), (+X, -Y, +Z), (+X, +Y, -Z), (+X, +Y, +Z).

Return

The modified result parameter or a new array if none was provided.

Parameters

result

An array of eight Cartesian3 instances onto which to store the corners.

See also