Visibility.ComputeBoundingSphere Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.