Method ExAs
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ExAs<TFrom, TTo>(Vector128<TFrom>)
(ExType) Reinterprets a Vector128<T> of type TFrom as a new Vector128<T> of type TTo. It supports ExType, so there is no element type check (将 TFrom 类型的 Vector128<T> 重新解释为 TTo 类型的新 Vector128<T>. 它支持扩展类型, 故没有元素类型检查).
public static Vector128<TTo> ExAs<TFrom, TTo>(this Vector128<TFrom> vector) where TFrom : struct where TTo : struct
Parameters
vectorVector128<TFrom>The vector to reinterpret (要重新解释的向量).
Returns
- Vector128<TTo>
vector reinterpreted as a Vector128<T> of type
TTo(重新解释为TTo类型的 Vector128<T> 向量).
Type Parameters
TFromThe type of the input vector element (输入向量元素的类型).
TToThe type that the vector
vectorshould be reinterpreted as (向量vector应重新解释为的类型).