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