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 24, 2018 · 18 revisions

IndexMathHelper

float Clamp(float value, float min, float max)

Summary

Restricts a value to be within a specified range. Reference page contains links to related code samples.

double Clamp(double value, double min, double max)

Summary

Restricts a value to be within a specified range. Reference page contains links to related code samples.

MyFixedPoint Clamp(MyFixedPoint value, MyFixedPoint min, MyFixedPoint max)

Summary

Restricts a value to be within a specified range. Reference page contains links to related code samples.

int Clamp(int value, int min, int max)

Summary

Restricts a value to be within a specified range. Reference page contains links to related code samples.

Clone this wiki locally