<Vec> Data Interface

Provides script language access to C++ objects of this type.

Class HierarchyNo registered superclass.

Function Members

Function members are as follows:

Return Type Function Name Documentation
<Vec>VecConstructs a <Vec> object with the specified X, Y, and Z coordinates.
int32AddAdds the vector 'A' to this vector.
int32AddScaledScales the vector 'A' by 'Scale', then adds the result to this vector.
int32AssignAssigns the components from the vector 'Other' to 'this'.
int32BindPointerBinds a <MemoryPointer> or subclass to this object. The <MemoryPointer> becomes a pointer to this object that can be passed to compatible functions.
int32BlendInterpolates this vector and 'End', using 1.0 - 'Alpha' and 'Alpha' as the blending weights.
int32BlendABInterpolates the vectors 'Start' and 'End', using 'AlphaA' and 1.0 - 'AlphaA' as the blending weights, respectively.
int32BlendABCUndocumented
int32CrossComputes the cross product between 'A' and 'B', and stores the result in this vector.
doubleDistanceToLineCalculates the distance from 'this' to a line which passes through two vectors 'A' and 'B'.
doubleDotReturns the dot product of this vector and the vector 'A'.
int32ElementSizeReturns the size in bytes of each element of the array. Returns 8 because a <float64> requires 8 bytes of storage for each element in the array.
int32FillSets all the items in the vector to this value.
doubleGetDistanceReturns the distance between this vector and the vector 'End'.
doubleGetDistanceXYReturns the distance between this vector and the vector 'End'.
doubleLengthXYReturns the 2-dimensional (x, y) length of the vector.
doubleMaximizeSelects the maximum values for each component of 'this' and the vector 'A', and assigns the values to 'this'.
doubleMinimizeSelects the minimum values for each component of 'this' and the vector 'A', and assigns the values to 'this'.
int32MultiplyMultiplies this vector with the vector 'A'.
doubleNormalizeScales the vector, placing it on the unit sphere.
int32ProjectOntoProjects this vector onto the vector 'ProjectOnto'.
int32ScaleScales this vector with the scalar value 'Scale'.
int32SetSets the X, Y, and Z coordinates of the vector.
int32SetDistanceMoves the vector a specified distance from the vector 'End'.
int32SizeInBytesReturns the size in bytes of the <VecArray>, which is the total number of bytes currently being used by the <VecArray>, and does not include any allocated reserve.
int32SubtractSubtracts the vector 'A' from this vector.
int32TransformUndocumented

Object Members

Object members are as follows:

Type Name Accessor Name Documentation
<Vec>ValueReturns the value of this object's underlying <Vec> object. For example: to assign the value of this object to another <Vec> object.
doubleLengthGets or sets the length of this vector, which is the distance from this vector to the origin.
doubleXGets or sets the X component of the vector.
doubleYGets or sets the Y component of the vector.
doubleZGets or sets the Z component of the vector.