Class Maths
Inheritance
System.Object
Maths
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities
Assembly: GameKit.Dependencies.dll
Syntax
public static class Maths
Methods
ClampByte(Byte, Byte, Byte)
Returns a clamped byte.
Declaration
public static byte ClampByte(byte value, byte min, byte max)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | |
System.Byte | min | |
System.Byte | max |
Returns
Type | Description |
---|---|
System.Byte |
ClampDouble(Double, Double, Double)
Returns a clamped double.
Declaration
public static double ClampDouble(double value, double min, double max)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | |
System.Double | min | |
System.Double | max |
Returns
Type | Description |
---|---|
System.Double |
ClampSByte(Int64, SByte, SByte)
Returns a clamped SBytte.
Declaration
public static sbyte ClampSByte(long value, sbyte min, sbyte max)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | |
System.SByte | min | |
System.SByte | max |
Returns
Type | Description |
---|---|
System.SByte |