C# Class bl_HudUtility, RoverGame

Mostrar archivo Open project: Stumpstump/RoverGame

Public Methods

Method Description
GetPivot ( float h, float v, float size ) : Vector2

GetRotation ( float x1, float y1, float x2, float y2 ) : float

HalfSize ( float s ) : float

Marge ( Vector2 v, float size ) : Vector2

ScalerRect ( Rect _rect ) : Rect

ScreenPosition ( Transform t ) : Vector3

Determine the adsolute position of target in screen

isOnScreen ( Vector3 pos, Transform t ) : bool

Method Details

GetPivot() public static method

public static GetPivot ( float h, float v, float size ) : Vector2
h float
v float
size float
return Vector2

GetRotation() public static method

public static GetRotation ( float x1, float y1, float x2, float y2 ) : float
x1 float
y1 float
x2 float
y2 float
return float

HalfSize() public static method

public static HalfSize ( float s ) : float
s float
return float

Marge() public static method

public static Marge ( Vector2 v, float size ) : Vector2
v Vector2
size float
return Vector2

ScalerRect() public static method

public static ScalerRect ( Rect _rect ) : Rect
_rect Rect
return Rect

ScreenPosition() public static method

Determine the adsolute position of target in screen
public static ScreenPosition ( Transform t ) : Vector3
t Transform
return Vector3

isOnScreen() public static method

public static isOnScreen ( Vector3 pos, Transform t ) : bool
pos Vector3
t Transform
return bool