Vector2Array.Vector2Array

Vector2Array(Memory<byte>, int, EncodingType, bool)

Initializes a new instance of the Vector2Array struct.

public Vector2Array(Memory<byte> source, int byteStride = 0, 
    EncodingType encoding = EncodingType.FLOAT, bool normalized = false)
ParameterTypeDescription
sourceMemory`1The array range to wrap.
byteStrideInt32The byte stride between elements. If the value is zero, the size of the item is used instead.
encodingEncodingTypeA value of EncodingType.
normalizedBooleanTrue if values are normalized.

See Also


Vector2Array(Memory<byte>, int, int, int, EncodingType, bool)

Initializes a new instance of the Vector2Array struct.

public Vector2Array(Memory<byte> source, int byteOffset, int itemsCount, int byteStride, 
    EncodingType encoding = EncodingType.FLOAT, bool normalized = false)
ParameterTypeDescription
sourceMemory`1The array range to wrap.
byteOffsetInt32The zero-based index of the first Byte in source.
itemsCountInt32>The number of Vector2 items in source.
byteStrideInt32The byte stride between elements. If the value is zero, the size of the item is used instead.
encodingEncodingTypeA value of EncodingType.
normalizedBooleanTrue if values are normalized.

See Also