Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.MathHelper.Clamp

Malware edited this page Dec 25, 2018 · 18 revisions

IndexMathHelper

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.

Clone this wiki locally