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

◆ CopyTo() [2/3]

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

Definition at line 308 of file Vector3.cs.

309 {
310 if (array == null)
311 {
312 throw new NullReferenceException(SR.Arg_NullArgumentNullRef);
313 }
314 if (index < 0 || index >= array.Length)
315 {
316 throw new ArgumentOutOfRangeException("index", SR.Format(SR.Arg_ArgumentOutOfRangeException, index));
317 }
318 if (array.Length - index < 3)
319 {
320 throw new ArgumentException(SR.Format(SR.Arg_ElementsInSourceIsGreaterThanDestination, index));
321 }
322 array[index] = X;
323 array[index + 1] = Y;
324 array[index + 2] = Z;
325 }

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