Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyTo() [2/3]

readonly void System.Numerics.Vector4.CopyTo ( float[] array,
int index )
inline

Definition at line 349 of file Vector4.cs.

350 {
351 if (array == null)
352 {
353 throw new NullReferenceException(SR.Arg_NullArgumentNullRef);
354 }
355 if (index < 0 || index >= array.Length)
356 {
357 throw new ArgumentOutOfRangeException("index", SR.Format(SR.Arg_ArgumentOutOfRangeException, index));
358 }
359 if (array.Length - index < 4)
360 {
361 throw new ArgumentException(SR.Format(SR.Arg_ElementsInSourceIsGreaterThanDestination, index));
362 }
363 array[index] = X;
364 array[index + 1] = Y;
365 array[index + 2] = Z;
366 array[index + 3] = W;
367 }

References System.SR.Arg_ArgumentOutOfRangeException, System.SR.Arg_ElementsInSourceIsGreaterThanDestination, System.SR.Arg_NullArgumentNullRef, System.array, System.SR.Format(), System.index, System.Numerics.Vector4.W, System.Numerics.Vector4.X, System.Numerics.Vector4.Y, and System.Numerics.Vector4.Z.