C# 클래스 Fusion.Core.Mathematics.RandomExt

Random functions on common types.
파일 보기 프로젝트 열기: demiurghg/FusionEngine

공개 메소드들

메소드 설명
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