Vector3 python
From WiCWiki

Vector3
The Vector3 is a 3D vector representation. Most basic mathematical operations (add, subtract, multipy, divide ) will work as expected.
Members
X
 Type
 float
 Description
 The X component of the Vector3.
Y
 Type
 float
 Description
 The Y component of the Vector3.
Z
 Type
 float
 Description
 The Z component of the Vector3.
Methods
Set
 Syntax
import wic wic.common.Vector3.Set( anXPart, anYPart aZPart )
 Description
 Sets the individual parts of the vector.
 Exceptions
 TypeError
 The supplied arguments was of the wrong type
Length
 Syntax
import wic wic.common.Vector3.Length()
 Description
 Returns the length of the vector
 Exceptions
 
 See also
 
Length2
 Syntax
import wic wic.common.Vector3.Length2()
 Description
 Returns the square length of the vector
 Exceptions
 
 See also
 #Length
 #Length2D
 #Length2D2
Length2D
 Syntax
import wic wic.common.Vector3.Length2D()
 Description
 Returns the length of the vector in the XZ plane.
 Exceptions
 
 See also
 #Length
 #Length2
 #Length2D2
Length2D2
 Syntax
import wic wic.common.Vector3.Length2D2()
 Description
 Returns the squared length of the vector in the XZ plane.
 Exceptions
 
Scale
 Syntax
import wic wic.common.Vector3.Scale( aFactor )
 Description
 Scales the Vector3 by aFactor.
 Exceptions
 TypeError
 aFactor wasn't a float
 See also
 
Normalize
 Syntax
import wic wic.common.Vector3.Normalize()
 Description
 Normalizes the vector to length 1.0
 Exceptions
 
 See also
 #GetNormalized
GetNormalized
 Syntax
import wic wic.common.Vector3.GetNormalized()
 Description
 Retrieves a normalized copy of the vector
 Exceptions
 
 See also
 #Normalize
MulElements
 Syntax
import wic wic.common.Vector3.MulEments( aMultiplicand )
 Description
 Multiplies each element of the vector with the respective element of the given vector
 Exceptions
 TypeError
 aMultiplicand was not a Vector3
 See also
 
Cross
 Syntax
import wic wic.common.Vector3.Cross( aCrossVector )
 Description
 Returns the vector that is the cross product of the vector and aCrossVector
 Exceptions
 TypeError
 aCrossVector was not a Vector3
 See also
 #Dot
Dot
 Syntax
import wic wic.common.Vector3.Dot( aDotVector )
 Description
 Returns the vector that is the dot product of the vector and aDotVector
 Exceptions
 TypeError
 aDotVector was not a Vector3
 See also
 #Cross