SIVector3.Normalize

Description

Sets the value of this vector to the normalization of vector v.

Scripting Syntax

oBoolean = SIVector3.Normalize( v );

Return Value

Boolean True if the normalization has been computed; otherwise False.

Parameters

Parameter Type Description
v SIVector3 Operand vector

Examples

VBScript Example

dim v1, v2
' Create 3D vectors.
set v1 = XSIMath.CreateVector3
set v2 = XSIMath.CreateVector3
v1.Set 12.0, 34.0, 43.0
if v2.Normalize( v1 ) then
computation = TRUE
else
computation = FALSE
end if

See Also

SIVector3.NormalizeInPlace SIVector3.Length SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion