Click or drag to resize
Ab4d.SharpEngine logo

Color4Clamp(Color4, Color4, Color4, Color4) Method

Note: This API is now obsolete.

Restricts a value to be within a specified range.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
[ObsoleteAttribute("Method with ref parameters are obsolete and will be removed in one of the future version. Use the method with the same name and with in parameter instead.")]
public static void Clamp(
	ref Color4 value,
	ref Color4 min,
	ref Color4 max,
	out Color4 result
)

Parameters

value  Color4
The value to clamp.
min  Color4
The minimum value.
max  Color4
The maximum value.
result  Color4
When the method completes, contains the clamped value.
See Also