C# 클래스 SuperCaissiere.Engine.Util.RandomMachine

파일 보기 프로젝트 열기: valryon/super-caissiere

공개 메소드들

메소드 설명
GetRandomFloat ( double fMin, double fmax ) : float

GetRandomInt ( int max ) : int

GetRandomInt ( int min, int max ) : int

GetRandomTrajectory ( double radius, double anglemin, double anglemax = 360 ) : Vector2

GetRandomVector2 ( Vector2 center, double radius ) : Vector2

GetRandomVector2 ( float xMin, float xMax, float yMin, float yMax ) : Vector2

RandomMachine ( int seed ) : System

Random init with seed

메소드 상세

GetRandomFloat() 공개 메소드

public GetRandomFloat ( double fMin, double fmax ) : float
fMin double
fmax double
리턴 float

GetRandomInt() 공개 메소드

public GetRandomInt ( int max ) : int
max int
리턴 int

GetRandomInt() 공개 메소드

public GetRandomInt ( int min, int max ) : int
min int
max int
리턴 int

GetRandomTrajectory() 공개 메소드

public GetRandomTrajectory ( double radius, double anglemin, double anglemax = 360 ) : Vector2
radius double
anglemin double
anglemax double
리턴 Vector2

GetRandomVector2() 공개 메소드

public GetRandomVector2 ( Vector2 center, double radius ) : Vector2
center Vector2
radius double
리턴 Vector2

GetRandomVector2() 공개 메소드

public GetRandomVector2 ( float xMin, float xMax, float yMin, float yMax ) : Vector2
xMin float
xMax float
yMin float
yMax float
리턴 Vector2

RandomMachine() 공개 메소드

Random init with seed
public RandomMachine ( int seed ) : System
seed int
리턴 System