C# Class Danmaku_no_Kyojin.Utils.Extensions

显示文件 Open project: Noxalus/Danmaku-no-Kyojin

Public Methods

Method Description
NextFloat ( this rand, float minValue, float maxValue ) : float
NextVector2 ( this rand, float minLength, float maxLength ) : Vector2
ScaleTo ( this vector, float length ) : Vector2
ToAngle ( this vector ) : float
ToPoint ( this vector ) : Point

Method Details

NextFloat() public static method

public static NextFloat ( this rand, float minValue, float maxValue ) : float
rand this
minValue float
maxValue float
return float

NextVector2() public static method

public static NextVector2 ( this rand, float minLength, float maxLength ) : Vector2
rand this
minLength float
maxLength float
return Vector2

ScaleTo() public static method

public static ScaleTo ( this vector, float length ) : Vector2
vector this
length float
return Vector2

ToAngle() public static method

public static ToAngle ( this vector ) : float
vector this
return float

ToPoint() public static method

public static ToPoint ( this vector ) : Point
vector this
return Point