Table of Contents

Method ConvertToSingle

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ConvertToSingle(Vector<int>)

Convert to a vector whose elements are of type Single (转换为元素类型是Single的向量).. Mnemonic: rt[i] := (Single)(value[i]).

public static Vector<float> ConvertToSingle(Vector<int> value)

Parameters

value Vector<int>

The source vector (源向量).

Returns

Vector<float>

The converted vector (转换后的向量).

See Also

ConvertToSingle(Vector<uint>)

Convert to a vector whose elements are of type Single (转换为元素类型是Single的向量).. Mnemonic: rt[i] := (Single)(value[i]).

[CLSCompliant(false)]
public static Vector<float> ConvertToSingle(Vector<uint> value)

Parameters

value Vector<uint>

The source vector (源向量).

Returns

Vector<float>

The converted vector (转换后的向量).

See Also