Method RandomPointsInSphere
RandomPointsInSphere(float3, float, NativeArray<float3>, JobHandle)
Schedule Burst jobs to generate random points inside of a sphere
Declaration
public static JobHandle RandomPointsInSphere(float3 center, float radius, NativeArray<float3> points, JobHandle inputDeps)
Parameters
| Type | Name | Description | 
|---|---|---|
| float3 | center | The center of the sphere  | 
    
| float | radius | The radius of the sphere  | 
    
| NativeArray<float3> | points | An array into which the random points are stored  | 
    
| JobHandle | inputDeps | A JobHandle to wait for, before the jobs scheduled by this function  | 
    
Returns
| Type | Description | 
|---|---|
| JobHandle | A JobHandle of the job that was created to generate random points inside a sphere  | 
    
RandomPointsInSphere(float3, float, NativeArray<float3>)
A function that generates random points inside of a sphere. Schedules and completes jobs, before returning to its caller.
Declaration
public static void RandomPointsInSphere(float3 center, float radius, NativeArray<float3> points)
Parameters
| Type | Name | Description | 
|---|---|---|
| float3 | center | The center of the sphere  | 
    
| float | radius | The radius of the sphere  | 
    
| NativeArray<float3> | points | A NativeArray in which to store the randomly generated points  |