Visibility.FrustumCullSpheres(Single[], Int32, Single[], Int32, Int32, Int32[], Int32, Int32) Visibility.FrustumCullSpheres(Single[], Int32, Single[], Int32, Int32, Int32[], Int32, Int32) Method

Definition

Given an OpenGL ES ModelView-Projection matrix (which implicitly describes a frustum) and a list of spheres, determine which spheres intersect the frustum.

[Android.Runtime.Register("frustumCullSpheres", "([FI[FII[III)I", "")]
public static int FrustumCullSpheres (float[] mvp, int mvpOffset, float[] spheres, int spheresOffset, int spheresCount, int[] results, int resultsOffset, int resultsCapacity);
static member FrustumCullSpheres : single[] * int * single[] * int * int * int[] * int * int -> int

Parameters

mvp
Single[]

a float array containing the mode-view-projection matrix

mvpOffset
Int32 Int32

The offset of the mvp data within the mvp array.

spheres
Single[]

a float array containing the sphere data.

spheresOffset
Int32 Int32

an offset into the sphere array where the sphere data starts

spheresCount
Int32 Int32

the number of spheres to cull.

results
Int32[]

an integer array containing the indices of the spheres that are either contained entirely within or intersect the frustum.

resultsOffset
Int32 Int32

an offset into the results array where the results start.

resultsCapacity
Int32 Int32

the number of array elements available for storing results.

Returns

Exceptions

if mvp is null, mvpOffset mvp.length - 16, spheres is null, spheresOffset spheres.length - sphereCount, results is null, resultsOffset results.length - resultsCapacity.

Remarks

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