fromEncodedCartesianVertices

fun fromEncodedCartesianVertices(positionsHigh: ReadonlyArray<Double>? = definedExternally, positionsLow: ReadonlyArray<Double>? = definedExternally, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a tight-fitting bounding sphere enclosing a list of EncodedCartesian3s, where the points are stored in parallel flat arrays in X, Y, Z, order. The bounding sphere is computed by running two algorithms, a naive algorithm and Ritter's algorithm. The smaller of the two spheres is used to ensure a tight fit.

Return

The modified result parameter or a new BoundingSphere instance if one was not provided.

Parameters

positionsHigh

An array of high bits of the encoded cartesians that the bounding sphere will enclose. Each point is formed from three elements in the array in the order X, Y, Z.

positionsLow

An array of low bits of the encoded cartesians that the bounding sphere will enclose. Each point is formed from three elements in the array in the order X, Y, Z.

result

The object onto which to store the result.

See also