Dela via


Visibility.ComputeBoundingSphere Method

Definition

Compute a bounding sphere for a set of points.

[Android.Runtime.Register("computeBoundingSphere", "([FII[FI)V", "")]
public static void ComputeBoundingSphere (float[]? positions, int positionsOffset, int positionsCount, float[]? sphere, int sphereOffset);
[<Android.Runtime.Register("computeBoundingSphere", "([FII[FI)V", "")>]
static member ComputeBoundingSphere : single[] * int * int * single[] * int -> unit

Parameters

positions
Single[]

positions in x, y, z triples

positionsOffset
Int32

offset into positions array

positionsCount
Int32

number of position triples to process

sphere
Single[]

array containing the output as (x, y, z, r)

sphereOffset
Int32

offset where the sphere data will be written

Attributes

Exceptions

if positions is null, positionsOffset positions.length - positionsCount, sphere is null, sphereOffset sphere.length - 4.

Remarks

Compute a bounding sphere for a set of points. It is approximately the minimal bounding sphere of an axis-aligned box that bounds the points.

Java documentation for android.opengl.Visibility.computeBoundingSphere(float[], int, int, float[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to