Tesla Graphics Engine Documentation (January 2012)
Clamp Method (value, min, max, result)
Tesla
►
Tesla.Math
►
Vector4
►
Clamp(Vector4
%
, Vector4
%
, Vector4
%
, Vector4
%
)
C#
Restricts the source vector between the range of the minimum and maximum vectors.
Declaration Syntax
C#
public
static
void
Clamp
(
ref
Vector4
value
,
ref
Vector4
min
,
ref
Vector4
max
,
out
Vector4
result
)
Parameters
value
(
Vector4
%
)
Source vector
min
(
Vector4
%
)
Minimum vector
max
(
Vector4
%
)
Maximum vector
result
(
Vector4
%
)
Existing vector to hold result
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)