SIVector3.ClampInPlace

Description

Clamps this vector components to the range [MinValue, MaxValue].

Scripting Syntax

SIVector3.ClampInPlace( MinValue, MaxValue );

Parameters

Parameter Type Description
MinValue Floating Point value Lower bound of the clamping domain
MaxValue Floating Point value Higher bound of the clamping domain

Examples

VBScript Example

dim v1
' Create 3D vectors.
set v1 = XSIMath.CreateVector3
v1.Set -1010.0, 1020.0, 1030.0
v1.ClampInPlace -1000.0, 1000.0

See Also

SIVector3.Clamp SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion