Android.Opengl.Visibility.ComputeBoundingSphere Method
Compute a bounding sphere for a set of points.

Syntax

[Android.Runtime.Register("computeBoundingSphere", "([FII[FI)V", "")]
public static void ComputeBoundingSphere (float[] positions, int positionsOffset, int positionsCount, float[] sphere, int sphereOffset)

Parameters

positions
positions in x, y, z triples
positionsOffset
offset into positions array
positionsCount
number of position triples to process
sphere
array containing the output as (x, y, z, r)
sphereOffset
offset where the sphere data will be written

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif 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.

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3