Click or drag to resize
Ab4d.SharpEngine logo

Color3Clamp(Color3, Color3, Color3, Color3) 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 Color3 value,
	ref Color3 min,
	ref Color3 max,
	out Color3 result
)

Parameters

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