Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.Utilities.Editor |
public static class GenericNumberUtility
public static T Clamp<T>(T number, double min, double max)
T | number | |
System.Double | min | |
System.Double | max |
T |
T |
public static T ConvertNumber<T>(object value)
System.Object | value |
T |
T |
public static object ConvertNumberWeak(object value, Type to)
System.Object | value | |
System.Type | to |
System.Object |
public static bool IsNumber(Type type)
System.Type | type |
System.Boolean |
public static bool IsVector(Type type)
System.Type | type |
System.Boolean |
public static bool NumberIsInRange(object number, double min, double max)
System.Object | number | |
System.Double | min | |
System.Double | max |
System.Boolean |