Class UIGradientUtils
Inheritance
System.Object
UIGradientUtils
Assembly: LlamaSoftware.UI.dll
Syntax
public static class UIGradientUtils
Methods
Bilerp(Color, Color, Color, Color, Vector2)
Declaration
public static Color Bilerp(Color a1, Color a2, Color b1, Color b2, Vector2 t)
Parameters
| Type |
Name |
Description |
| UnityEngine.Color |
a1 |
|
| UnityEngine.Color |
a2 |
|
| UnityEngine.Color |
b1 |
|
| UnityEngine.Color |
b2 |
|
| UnityEngine.Vector2 |
t |
|
Returns
| Type |
Description |
| UnityEngine.Color |
|
LocalPositionMatrix(Rect, Vector2)
Declaration
public static UIGradientUtils.Matrix2x3 LocalPositionMatrix(Rect rect, Vector2 dir)
Parameters
| Type |
Name |
Description |
| UnityEngine.Rect |
rect |
|
| UnityEngine.Vector2 |
dir |
|
Returns
RotateX(Single, Single, Single)
Declaration
public static float RotateX(float xPosition, float angle, float yPosition)
Parameters
| Type |
Name |
Description |
| System.Single |
xPosition |
|
| System.Single |
angle |
|
| System.Single |
yPosition |
|
Returns
| Type |
Description |
| System.Single |
|
RotationDirection(Single)
Declaration
public static Vector2 RotationDirection(float angle)
Parameters
| Type |
Name |
Description |
| System.Single |
angle |
|
Returns
| Type |
Description |
| UnityEngine.Vector2 |
|