Sdílet prostřednictvím


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

Definice

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

public:
generic <typename TFrom, typename TTo>
 where TFrom : value class where TTo : value class[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector<TTo> As(System::Numerics::Vector<TFrom> vector);
public:
generic <typename TFrom, typename TTo>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector<TTo> As(System::Numerics::Vector<TFrom> vector);
public static System.Numerics.Vector<TTo> As<TFrom,TTo> (this System.Numerics.Vector<TFrom> vector) where TFrom : struct where TTo : struct;
public static System.Numerics.Vector<TTo> As<TFrom,TTo> (this System.Numerics.Vector<TFrom> vector);
static member As : System.Numerics.Vector<'From (requires 'From : struct)> -> System.Numerics.Vector<'o (requires 'o : struct)> (requires 'From : struct and 'o : struct)
static member As : System.Numerics.Vector<'From> -> System.Numerics.Vector<'o>
<Extension()>
Public Function As(Of TFrom As Structure, TTo As Structure) (vector As Vector(Of TFrom)) As Vector(Of TTo)
<Extension()>
Public Function As(Of TFrom, TTo) (vector As Vector(Of TFrom)) As Vector(Of TTo)

Parametry typu

TFrom

Typ vstupního vektoru.

TTo

Typ vektoru vector by měl být reinterpretován jako.

Parametry

vector
Vector<TFrom>

Vektor, který se má reinterpretovat.

Návraty

Vector<TTo>

vector reinterpreted as a new Vector<T>.

Výjimky

Typ vector (TFrom) nebo typ cíle (TTo) se nepodporuje.

Platí pro