<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'.
int32BindIteratorsBinds iterators to this object.
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.
float64DistanceToLineCalculates the distance from 'this' to a line which passes through two vectors 'A' and 'B'.
float64DotReturns the dot product of this vector and the vector 'A'.
int32FillSets all the items in the vector to this value.
<Float64Iterator>FirstReturns an iterator positioned at the start of the collection.
float64GetDistanceReturns the distance between this vector and the vector 'End'.
float64GetDistanceXYReturns the distance between this vector and the vector 'End'.
int32GetElementSizeReturns 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.
<Float64Pointer>GetPointerReturns a pointer to this object. The pointer object is allocated with new so you must use auto in the declaration or you must manually delete the pointer object. For example: auto Float16Pointer ptr = object.GetPointer().
int32GetSizeInBytesReturns 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.
<Float64ArrayView>GetViewReturns a <Float16ArrayView> that contains first and last iterators for the collection.
<Float64Iterator>LastReturns an iterator positioned at the end of the collection.
float64LengthXYReturns the 2-dimensional (x, y) length of the vector.
float64MaximizeSelects the maximum values for each component of 'this' and the vector 'A', and assigns the values to 'this'.
float64MinimizeSelects 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'.
float64NormalizeScales 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'.
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.
float64LengthGets or sets the length of this vector, which is the distance from this vector to the origin.
float64XGets or sets the X component of the vector.
float64YGets or sets the Y component of the vector.
float64ZGets or sets the Z component of the vector.