C# Class Fusion.Core.Mathematics.RandomExt

Random functions on common types.
显示文件 Open project: demiurghg/FusionEngine

Public Methods

Method Description
GaussDistribution ( this random, float mean, float stdDev ) : float

GaussRadialDistribution ( this random, float meanRadius, float stdDev ) : System.Vector3

NextColor ( this random ) : Color

Gets random opaque Color.

NextColor ( this random, float minBrightness, float maxBrightness ) : Color

Gets random opaque Color.

NextColor ( this random, float minBrightness, float maxBrightness, float alpha ) : Color

Gets random Color.

NextColor ( this random, float minBrightness, float maxBrightness, float minAlpha, float maxAlpha ) : Color

Gets random Color.

NextColor4 ( this random ) : Color4

Gets random opaque Color.

NextDouble ( this random, double min, double max ) : double

Gets random double number within range.

NextFloat ( this random, float min, float max ) : float

Gets random float number within range.

NextLong ( this random ) : long

Gets random long number.

NextLong ( this random, long min, long max ) : long

Gets random long number within range.

NextPoint ( this random, System.Point min, System.Point max ) : System.Point

Gets random Point.

NextTime ( this random, System.TimeSpan min, System.TimeSpan max ) : System.TimeSpan

Gets random System.TimeSpan.

NextVector2 ( this random, System.Vector2 min, System.Vector2 max ) : System.Vector2

Gets random Vector2 within range.

NextVector3 ( this random, System.Vector3 min, System.Vector3 max ) : System.Vector3

Gets random Vector3 within range.

NextVector3OnSphere ( this random ) : System.Vector3

Gets random Vector3 on sphere.

NextVector4 ( this random, System.Vector4 min, System.Vector4 max ) : System.Vector4

Gets random Vector4 within range.

UniformRadialDistribution ( this random, float interiorRadius, float exteriorRadius ) : System.Vector3

Method Details

GaussDistribution() public static method

public static GaussDistribution ( this random, float mean, float stdDev ) : float
random this
mean float
stdDev float
return float

GaussRadialDistribution() public static method

public static GaussRadialDistribution ( this random, float meanRadius, float stdDev ) : System.Vector3
random this
meanRadius float
stdDev float
return System.Vector3

NextColor() public static method

Gets random opaque Color.
public static NextColor ( this random ) : Color
random this Current .
return Color

NextColor() public static method

Gets random opaque Color.
public static NextColor ( this random, float minBrightness, float maxBrightness ) : Color
random this Current .
minBrightness float Minimum brightness.
maxBrightness float Maximum brightness
return Color

NextColor() public static method

Gets random Color.
public static NextColor ( this random, float minBrightness, float maxBrightness, float alpha ) : Color
random this Current .
minBrightness float Minimum brightness.
maxBrightness float Maximum brightness
alpha float Alpha value.
return Color

NextColor() public static method

Gets random Color.
public static NextColor ( this random, float minBrightness, float maxBrightness, float minAlpha, float maxAlpha ) : Color
random this Current .
minBrightness float Minimum brightness.
maxBrightness float Maximum brightness
minAlpha float Minimum alpha.
maxAlpha float Maximum alpha.
return Color

NextColor4() public static method

Gets random opaque Color.
public static NextColor4 ( this random ) : Color4
random this Current .
return Color4

NextDouble() public static method

Gets random double number within range.
public static NextDouble ( this random, double min, double max ) : double
random this Current .
min double Minimum.
max double Maximum.
return double

NextFloat() public static method

Gets random float number within range.
public static NextFloat ( this random, float min, float max ) : float
random this Current .
min float Minimum.
max float Maximum.
return float

NextLong() public static method

Gets random long number.
public static NextLong ( this random ) : long
random this Current .
return long

NextLong() public static method

Gets random long number within range.
public static NextLong ( this random, long min, long max ) : long
random this Current .
min long Minimum.
max long Maximum.
return long

NextPoint() public static method

Gets random Point.
public static NextPoint ( this random, System.Point min, System.Point max ) : System.Point
random this Current .
min System.Point Minimum.
max System.Point Maximum.
return System.Point

NextTime() public static method

Gets random System.TimeSpan.
public static NextTime ( this random, System.TimeSpan min, System.TimeSpan max ) : System.TimeSpan
random this Current .
min System.TimeSpan Minimum.
max System.TimeSpan Maximum.
return System.TimeSpan

NextVector2() public static method

Gets random Vector2 within range.
public static NextVector2 ( this random, System.Vector2 min, System.Vector2 max ) : System.Vector2
random this Current .
min System.Vector2 Minimum.
max System.Vector2 Maximum.
return System.Vector2

NextVector3() public static method

Gets random Vector3 within range.
public static NextVector3 ( this random, System.Vector3 min, System.Vector3 max ) : System.Vector3
random this Current .
min System.Vector3 Minimum.
max System.Vector3 Maximum.
return System.Vector3

NextVector3OnSphere() public static method

Gets random Vector3 on sphere.
public static NextVector3OnSphere ( this random ) : System.Vector3
random this Current .
return System.Vector3

NextVector4() public static method

Gets random Vector4 within range.
public static NextVector4 ( this random, System.Vector4 min, System.Vector4 max ) : System.Vector4
random this Current .
min System.Vector4 Minimum.
max System.Vector4 Maximum.
return System.Vector4

UniformRadialDistribution() public static method

public static UniformRadialDistribution ( this random, float interiorRadius, float exteriorRadius ) : System.Vector3
random this
interiorRadius float
exteriorRadius float
return System.Vector3