Edit

Share via


Vector2.TryCopyTo(Span<Single>) Method

Definition

Attempts to copy the vector to the given Span<T>. The length of the destination span must be at least 2.

public:
 bool TryCopyTo(Span<float> destination);
public readonly bool TryCopyTo (Span<float> destination);
member this.TryCopyTo : Span<single> -> bool
Public Function TryCopyTo (destination As Span(Of Single)) As Boolean

Parameters

destination
Span<Single>

The destination span into which the values are copied.

Returns

true if the source vector was successfully copied to destination. false if destination is not large enough to hold the source vector.

Applies to