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 |
|
public static GetPivot ( float h, float v, float size ) : Vector2 | ||
h | float | |
v | float | |
size | float | |
return | Vector2 |
public static GetRotation ( float x1, float y1, float x2, float y2 ) : float | ||
x1 | float | |
y1 | float | |
x2 | float | |
y2 | float | |
return | float |
public static Marge ( Vector2 v, float size ) : Vector2 | ||
v | Vector2 | |
size | float | |
return | Vector2 |
public static ScalerRect ( Rect _rect ) : Rect | ||
_rect | Rect | |
return | Rect |
public static ScreenPosition ( Transform t ) : Vector3 | ||
t | Transform | |
return | Vector3 |
public static isOnScreen ( Vector3 pos, Transform t ) : bool | ||
pos | Vector3 | |
t | Transform | |
return | bool |