Table of Contents

Class CurvedUIExtensionMethods

Namespace
CurvedUI
Assembly
Assembly-CSharp.dll
public static class CurvedUIExtensionMethods
Inheritance
CurvedUIExtensionMethods
Inherited Members

Methods

Abs(int)

public static int Abs(this int value)

Parameters

value int

Returns

int

Abs(float)

public static float Abs(this float value)

Parameters

value float

Returns

float

AddComponentIfMissing<T>(Component)

public static T AddComponentIfMissing<T>(this Component go) where T : Component

Parameters

go Component

Returns

T

Type Parameters

T

AddComponentIfMissing<T>(GameObject)

public static T AddComponentIfMissing<T>(this GameObject go) where T : Component

Parameters

go GameObject

Returns

T

Type Parameters

T

AlmostEqual(Vector3, Vector3, double)

public static bool AlmostEqual(this Vector3 a, Vector3 b, double accuracy = 0.01)

Parameters

a Vector3
b Vector3
accuracy double

Returns

bool

CeilToInt(float)

public static int CeilToInt(this float value)

Parameters

value float

Returns

int

Clamp(int, int, int)

public static float Clamp(this int value, int min, int max)

Parameters

value int
min int
max int

Returns

float

Clamp(float, float, float)

public static float Clamp(this float value, float min, float max)

Parameters

value float
min float
max float

Returns

float

FloorToInt(float)

public static int FloorToInt(this float value)

Parameters

value float

Returns

int

ModifyVectorX(Vector2, float)

public static Vector2 ModifyVectorX(this Vector2 trans, float newVal)

Parameters

trans Vector2
newVal float

Returns

Vector2

ModifyVectorY(Vector2, float)

public static Vector2 ModifyVectorY(this Vector2 trans, float newVal)

Parameters

trans Vector2
newVal float

Returns

Vector2

ModifyX(Vector3, float)

public static Vector3 ModifyX(this Vector3 trans, float newVal)

Parameters

trans Vector3
newVal float

Returns

Vector3

ModifyY(Vector3, float)

public static Vector3 ModifyY(this Vector3 trans, float newVal)

Parameters

trans Vector3
newVal float

Returns

Vector3

ModifyZ(Vector3, float)

public static Vector3 ModifyZ(this Vector3 trans, float newVal)

Parameters

trans Vector3
newVal float

Returns

Vector3

Remap(double, double, double, double, double)

public static double Remap(this double value, double from1, double to1, double from2, double to2)

Parameters

value double
from1 double
to1 double
from2 double
to2 double

Returns

double

Remap(int, float, float, float, float)

public static float Remap(this int value, float from1, float to1, float from2, float to2)

Parameters

value int
from1 float
to1 float
from2 float
to2 float

Returns

float

Remap(float, float, float, float, float)

public static float Remap(this float value, float from1, float to1, float from2, float to2)

Parameters

value float
from1 float
to1 float
from2 float
to2 float

Returns

float

RemapAndClamp(float, float, float, float, float)

public static float RemapAndClamp(this float value, float from1, float to1, float from2, float to2)

Parameters

value float
from1 float
to1 float
from2 float
to2 float

Returns

float

ResetTransform(Transform)

public static void ResetTransform(this Transform trans)

Parameters

trans Transform

ToInt(float)

public static int ToInt(this float value)

Parameters

value float

Returns

int