[This is preliminary documentation and is subject to change.]

Copies a range of vectors from a flattend array to a vector array.

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static Vector3[] GetVectors(
	float[] source,
	int sourceIndex,
	Vector3[] target,
	int targetIndex,
	int count
)
Public Shared Function GetVectors ( _
	source As Single(), _
	sourceIndex As Integer, _
	target As Vector3(), _
	targetIndex As Integer, _
	count As Integer _
) As Vector3()
public:
static array<Vector3>^ GetVectors(
	array<float>^ source, 
	int sourceIndex, 
	array<Vector3>^ target, 
	int targetIndex, 
	int count
)

Parameters

source
array<Single>[]()[][]
An array of vectors in the form (x, y, z) * vertCount.
sourceIndex
Int32
The index of the start vector in the source array.
target
array<Vector3>[]()[][]
The target vector buffer. (Or null.)
targetIndex
Int32
The index within the target buffer to start the copy.
count
Int32
The number of vectors to copy.

Return Value

The reference to the target buffer, or a new array if no buffer was provided.

Remarks

If a target buffer is provided is must be large enough to contain the results.

If the target buffer is null a new array will be created with a length of count + targetIndex

See Also