Olvasás angol nyelven Szerkesztés

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


Vector.As<TFrom,TTo>(Vector<TFrom>) Method

Definition

Reinterprets a Vector<T> as a new Vector<T>.

C#
public static System.Numerics.Vector<TTo> As<TFrom,TTo>(this System.Numerics.Vector<TFrom> vector);
C#
public static System.Numerics.Vector<TTo> As<TFrom,TTo>(this System.Numerics.Vector<TFrom> vector) where TFrom : struct where TTo : struct;

Type Parameters

TFrom

The type of the input vector.

TTo

The type of the vector vector should be reinterpreted as.

Parameters

vector
Vector<TFrom>

The vector to reinterpret.

Returns

Vector<TTo>

vector reinterpreted as a new Vector<T>.

Exceptions

The type of vector (TFrom) or the type of the target (TTo) is not supported.

Applies to

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