C# Класс Fusion.Core.Mathematics.RandomExt

Random functions on common types.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GaussDistribution() публичный статический Метод

public static GaussDistribution ( this random, float mean, float stdDev ) : float
random this
mean float
stdDev float
Результат float

GaussRadialDistribution() публичный статический Метод

public static GaussRadialDistribution ( this random, float meanRadius, float stdDev ) : System.Vector3
random this
meanRadius float
stdDev float
Результат System.Vector3

NextColor() публичный статический Метод

Gets random opaque Color.
public static NextColor ( this random ) : Color
random this Current .
Результат Color

NextColor() публичный статический Метод

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
Результат Color

NextColor() публичный статический Метод

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.
Результат Color

NextColor() публичный статический Метод

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.
Результат Color

NextColor4() публичный статический Метод

Gets random opaque Color.
public static NextColor4 ( this random ) : Color4
random this Current .
Результат Color4

NextDouble() публичный статический Метод

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.
Результат double

NextFloat() публичный статический Метод

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.
Результат float

NextLong() публичный статический Метод

Gets random long number.
public static NextLong ( this random ) : long
random this Current .
Результат long

NextLong() публичный статический Метод

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.
Результат long

NextPoint() публичный статический Метод

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.
Результат System.Point

NextTime() публичный статический Метод

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.
Результат System.TimeSpan

NextVector2() публичный статический Метод

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.
Результат System.Vector2

NextVector3() публичный статический Метод

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.
Результат System.Vector3

NextVector3OnSphere() публичный статический Метод

Gets random Vector3 on sphere.
public static NextVector3OnSphere ( this random ) : System.Vector3
random this Current .
Результат System.Vector3

NextVector4() публичный статический Метод

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.
Результат System.Vector4

UniformRadialDistribution() публичный статический Метод

public static UniformRadialDistribution ( this random, float interiorRadius, float exteriorRadius ) : System.Vector3
random this
interiorRadius float
exteriorRadius float
Результат System.Vector3