Table of Contents

Method YGroup3Zip

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YGroup3Zip<T>(IVectorTraits, Vector<T>, Vector<T>, Vector<T>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector<T> Data0, Vector<T> Data1, Vector<T> Data2) YGroup3Zip<T>(this IVectorTraits athis, Vector<T> x, Vector<T> y, Vector<T> z) where T : struct

Parameters

athis IVectorTraits
x Vector<T>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<T>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<T>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<T> Result0, Vector<T> Result1, Vector<T> Result2)

Returns the interleaved data (返回交织后数据).

Type Parameters

T

The element type of the input parameter (输入参数的元素类型).

YGroup3Zip(IVectorTraits, Vector<float>, Vector<float>, Vector<float>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<float> Data0, Vector<float> Data1, Vector<float> Data2) YGroup3Zip(this IVectorTraits athis, Vector<float> x, Vector<float> y, Vector<float> z)

Parameters

athis IVectorTraits
x Vector<float>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<float>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<float>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<float> Result0, Vector<float> Result1, Vector<float> Result2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<double>, Vector<double>, Vector<double>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<double> Data0, Vector<double> Data1, Vector<double> Data2) YGroup3Zip(this IVectorTraits athis, Vector<double> x, Vector<double> y, Vector<double> z)

Parameters

athis IVectorTraits
x Vector<double>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<double>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<double>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<double> Result0, Vector<double> Result1, Vector<double> Result2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<sbyte>, Vector<sbyte>, Vector<sbyte>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<sbyte> Data0, Vector<sbyte> Data1, Vector<sbyte> Data2) YGroup3Zip(this IVectorTraits athis, Vector<sbyte> x, Vector<sbyte> y, Vector<sbyte> z)

Parameters

athis IVectorTraits
x Vector<sbyte>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<sbyte>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<sbyte>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<sbyte> args0, Vector<sbyte> args1, Vector<sbyte> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<byte>, Vector<byte>, Vector<byte>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<byte> Data0, Vector<byte> Data1, Vector<byte> Data2) YGroup3Zip(this IVectorTraits athis, Vector<byte> x, Vector<byte> y, Vector<byte> z)

Parameters

athis IVectorTraits
x Vector<byte>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<byte>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<byte>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<byte> args0, Vector<byte> args1, Vector<byte> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<short>, Vector<short>, Vector<short>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<short> Data0, Vector<short> Data1, Vector<short> Data2) YGroup3Zip(this IVectorTraits athis, Vector<short> x, Vector<short> y, Vector<short> z)

Parameters

athis IVectorTraits
x Vector<short>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<short>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<short>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<short> args0, Vector<short> args1, Vector<short> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<ushort>, Vector<ushort>, Vector<ushort>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<ushort> Data0, Vector<ushort> Data1, Vector<ushort> Data2) YGroup3Zip(this IVectorTraits athis, Vector<ushort> x, Vector<ushort> y, Vector<ushort> z)

Parameters

athis IVectorTraits
x Vector<ushort>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<ushort>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<ushort>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<ushort> args0, Vector<ushort> args1, Vector<ushort> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<int>, Vector<int>, Vector<int>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<int> Data0, Vector<int> Data1, Vector<int> Data2) YGroup3Zip(this IVectorTraits athis, Vector<int> x, Vector<int> y, Vector<int> z)

Parameters

athis IVectorTraits
x Vector<int>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<int>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<int>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<int> args0, Vector<int> args1, Vector<int> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<uint>, Vector<uint>, Vector<uint>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<uint> Data0, Vector<uint> Data1, Vector<uint> Data2) YGroup3Zip(this IVectorTraits athis, Vector<uint> x, Vector<uint> y, Vector<uint> z)

Parameters

athis IVectorTraits
x Vector<uint>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<uint>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<uint>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<uint> args0, Vector<uint> args1, Vector<uint> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<long>, Vector<long>, Vector<long>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<long> Data0, Vector<long> Data1, Vector<long> Data2) YGroup3Zip(this IVectorTraits athis, Vector<long> x, Vector<long> y, Vector<long> z)

Parameters

athis IVectorTraits
x Vector<long>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<long>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<long>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<long> args0, Vector<long> args1, Vector<long> args2)

Returns the interleaved data (返回交织后数据).

YGroup3Zip(IVectorTraits, Vector<ulong>, Vector<ulong>, Vector<ulong>)

Interleave 3 vectors into 3-element groups. It converts the 3-element groups SoA to AoS. It can also interleave R,G,B planar data into packed RGB pixel data (将3个向量交织为3-元素组. 它能将3元素组的 结构体数组 转为 数组结构体. 它还能将 R,G,B 平面数据, 交织为 已打包的RGB像素数据). Mnemonic: element_ref(i, data0, data1, data2) := (0==(i%3))?( x[i2] ):( (1==(i%3))?( y[i2] ):( z[i2] ) ), i2 := i/3.

[CLSCompliant(false)]
public static (Vector<ulong> Data0, Vector<ulong> Data1, Vector<ulong> Data2) YGroup3Zip(this IVectorTraits athis, Vector<ulong> x, Vector<ulong> y, Vector<ulong> z)

Parameters

athis IVectorTraits
x Vector<ulong>

A vector consisting purely of X-components (纯由X分量所组成的向量).

y Vector<ulong>

A vector consisting purely of Y-components (纯由Y分量所组成的向量).

z Vector<ulong>

A vector consisting purely of Z-components (纯由Z分量所组成的向量).

Returns

(Vector<ulong> args0, Vector<ulong> args1, Vector<ulong> args2)

Returns the interleaved data (返回交织后数据).