Clamps the vector v components to the range [MinValue, MaxValue] and places the values into this vector.
SIVector3.Clamp( MinValue, MaxValue, v ); |
Parameter | Type | Description |
---|---|---|
MinValue | Floating Point value | Lower bound of the clamping domain |
MaxValue | Floating Point value | Higher bound of the clamping domain |
v | SIVector3 | Operand vector |
dim v1 ' Create 3D vectors. set v1 = XSIMath.CreateVector3 set v2 = XSIMath.CreateVector3 v1.Set -1010.0, 1020.0, 1030.0 v2.Clamp -1000.0, 1000.0, v1 |