Version 3.3.1.2

GenericNumberUtility class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.Utilities.Editor
public static class GenericNumberUtility
Inheritance
  • System.Object
  • GenericNumberUtility

Methods

Clamp<T>(T, Double, Double)
public static T Clamp<T>(T number, double min, double max)
Parameters
T number

System.Double min

System.Double max

Returns
T

Type Parameters
T

ConvertNumber<T>(Object)
public static T ConvertNumber<T>(object value)
Parameters
System.Object value

Returns
T

Type Parameters
T

ConvertNumberWeak(Object, Type)
public static object ConvertNumberWeak(object value, Type to)
Parameters
System.Object value

System.Type to

Returns
System.Object

IsNumber(Type)
public static bool IsNumber(Type type)
Parameters
System.Type type

Returns
System.Boolean

IsVector(Type)
public static bool IsVector(Type type)
Parameters
System.Type type

Returns
System.Boolean

NumberIsInRange(Object, Double, Double)
public static bool NumberIsInRange(object number, double min, double max)
Parameters
System.Object number

System.Double min

System.Double max

Returns
System.Boolean