Clamp
Summary
public static float Clamp(float value, float min, float max)
Restricts a value to be within a specified range. Reference page contains links to related code samples.
Returns
Parameters
Summary
public static double Clamp(double value, double min, double max)
Restricts a value to be within a specified range. Reference page contains links to related code samples.
Returns
Parameters
Summary
public static MyFixedPoint Clamp(MyFixedPoint value, MyFixedPoint min, MyFixedPoint max)
Restricts a value to be within a specified range. Reference page contains links to related code samples.
Returns
Parameters
- MyFixedPoint value
- MyFixedPoint min
- MyFixedPoint max
Summary
public static int Clamp(int value, int min, int max)
Restricts a value to be within a specified range. Reference page contains links to related code samples.
Returns
Parameters
Summary
public static byte Clamp(byte value, byte min, byte max)
Restricts a value to be within a specified range.