Method | Description | |
---|---|---|
GetRandomFloat ( |
||
GetRandomFloat ( |
||
GetRandomPointInCube ( |
Generates a random Vector3 positionned inside a cube.
|
|
GetRandomPointInSphere ( |
Generates a random Vector3 positionned inside a sphere.
|
|
GetRandomPointOnSphere ( |
Generates a random Vector3 on the surface of a sphere.
|
Method | Description | |
---|---|---|
GetRandomPolarCoordinates ( |
Generates a random Vector3 point in a Polar Coordinate System.
|
public static GetRandomFloat ( |
||
dice | ||
return | float |
public static GetRandomFloat ( |
||
dice | ||
min | float | |
max | float | |
return | float |
static public GetRandomPointInCube ( |
||
dice | The Random instance to be used when generating data. | |
maxDistanceFromCenter | int | The maximum distance from center the point can be generated |
return | Vector3 |
static public GetRandomPointInSphere ( |
||
dice | The Random instance to be used when generating data. | |
maxDistanceFromOrigin | int | The maximum distance from origin the point can be generated. Usually, the radius of a sphere. |
return | Vector3 |
static public GetRandomPointOnSphere ( |
||
dice | The Random instance to be used when generating data. | |
radius | float | The radius of the Sphere. |
return | Vector3 |