C# Class FairyGUI.Utils.ToolSet

Show file Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Methods

Method Description
CharToHex ( char c ) : int
ColorFromRGB ( int value ) : Color
ColorFromRGBA ( int value ) : Color
ConvertFromHtmlColor ( string str ) : Color
FlipInnerRect ( float sourceWidth, float sourceHeight, Rect &rect, FlipType flip ) : void
FlipRect ( Rect &rect, FlipType flip ) : void
Intersection ( Rect &rect1, Rect &rect2 ) : Rect
IsPointInTriangle ( Vector2 &p, Vector2 &a, Vector2 &b, Vector2 &c ) : bool
SetParent ( Transform t, Transform parent ) : void
SkewMatrix ( Matrix4x4 &matrix, float skewX, float skewY ) : void
Union ( Rect &rect1, Rect &rect2 ) : Rect
uvLerp ( Vector2 uvSrc, Vector2 uvDest, float min, float max ) : void

Method Details

CharToHex() public static method

public static CharToHex ( char c ) : int
c char
return int

ColorFromRGB() public static method

public static ColorFromRGB ( int value ) : Color
value int
return Color

ColorFromRGBA() public static method

public static ColorFromRGBA ( int value ) : Color
value int
return Color

ConvertFromHtmlColor() public static method

public static ConvertFromHtmlColor ( string str ) : Color
str string
return Color

FlipInnerRect() public static method

public static FlipInnerRect ( float sourceWidth, float sourceHeight, Rect &rect, FlipType flip ) : void
sourceWidth float
sourceHeight float
rect UnityEngine.Rect
flip FlipType
return void

FlipRect() public static method

public static FlipRect ( Rect &rect, FlipType flip ) : void
rect UnityEngine.Rect
flip FlipType
return void

Intersection() public static method

public static Intersection ( Rect &rect1, Rect &rect2 ) : Rect
rect1 UnityEngine.Rect
rect2 UnityEngine.Rect
return UnityEngine.Rect

IsPointInTriangle() public static method

public static IsPointInTriangle ( Vector2 &p, Vector2 &a, Vector2 &b, Vector2 &c ) : bool
p Vector2
a Vector2
b Vector2
c Vector2
return bool

SetParent() public static method

public static SetParent ( Transform t, Transform parent ) : void
t UnityEngine.Transform
parent UnityEngine.Transform
return void

SkewMatrix() public static method

public static SkewMatrix ( Matrix4x4 &matrix, float skewX, float skewY ) : void
matrix UnityEngine.Matrix4x4
skewX float
skewY float
return void

Union() public static method

public static Union ( Rect &rect1, Rect &rect2 ) : Rect
rect1 UnityEngine.Rect
rect2 UnityEngine.Rect
return UnityEngine.Rect

uvLerp() public static method

public static uvLerp ( Vector2 uvSrc, Vector2 uvDest, float min, float max ) : void
uvSrc Vector2
uvDest Vector2
min float
max float
return void