Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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.

C#
public readonly bool TryCopyTo(Span<float> destination);

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

Termék Verziók
.NET 6, 7, 8, 9, 10