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