SIVector3.Length
 
 
 

SIVector3.Length

Description

Returns the length of this vector.

C# Syntax

Double SIVector3.Length();

Scripting Syntax

oFloat = SIVector3.Length();

Return Value

Floating point value (length of this vector).

Examples

VBScript Example

dim v1
' Create 3D vectors.
set v1 = XSIMath.CreateVector3
v1.Set 1.0, 2.0, 3.0
length = v1.Length

See Also

SIVector3.LengthSquared SIVector3.Normalize SIVector3.NormalizeInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion