Map(ReadOnlySpan, Span, ReadOnlySpan) Method

Definition

Assembly Broadside.dll

Maps interleaved raw values and clamps each result to its component's range.

public void Map(ReadOnlySpan<ushort> raw, Span<float> output, ReadOnlySpan<ComponentRange> ranges)

Parameters

raw
ReadOnlySpan<UInt16>

Raw values.

output
Span<Single>

At least as many values.

ranges
ReadOnlySpan<ComponentRange>

The range of each component (GetComponentRange(Int32)).

Remarks

ISO 32000-2 §8.9.5.2: "the nearest allowed value".