Android Guides | Samples

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 (Single[] positions, Int32 positionsOffset, Int32 positionsCount, Single[] sphere, Int32 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
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