SIVector3.LengthSquared
 
 
 

SIVector3.LengthSquared

Description

Returns the squared length of this vector.

C# Syntax

Double SIVector3.LengthSquared();

Scripting Syntax

oFloat = SIVector3.LengthSquared();

Return Value

Floating point value (squared length of this vector).

Examples

VBScript Example

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

See Also

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