-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.MathHelper.Clamp
← Index ← MathHelper
csharp[float](System.Single) Clamp([float](System.Single) value, [float](System.Single) min, [float](System.Single) max)##### Summary
Restricts a value to be within a specified range. Reference page contains links to related code samples.
csharp[double](System.Double) Clamp([double](System.Double) value, [double](System.Double) min, [double](System.Double) max)##### Summary
Restricts a value to be within a specified range. Reference page contains links to related code samples.
csharp[MyFixedPoint](VRage.MyFixedPoint) Clamp([MyFixedPoint](VRage.MyFixedPoint) value, [MyFixedPoint](VRage.MyFixedPoint) min, [MyFixedPoint](VRage.MyFixedPoint) max)##### Summary
Restricts a value to be within a specified range. Reference page contains links to related code samples.
csharp[int](System.Int32) Clamp([int](System.Int32) value, [int](System.Int32) min, [int](System.Int32) max)##### Summary
Restricts a value to be within a specified range. Reference page contains links to related code samples.
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!