computeCorners
fun computeCorners(box: OrientedBoundingBox, result: ReadonlyArray<Cartesian3>? = definedExternally): ReadonlyArray<Cartesian3>(source)
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
box
The oriented bounding box.
result
An array of eight Cartesian3 instances onto which to store the corners.