Map(Int32, Int32) Method

Definition

Assembly Broadside.dll

Maps one raw value of component component.

public float Map(int component, int raw)

Parameters

component
Int32

The component, from 0.

raw
Int32

The raw value, 0 to 2^n − 1 (larger values are masked to n bits).

Returns

Single
The component value.

Remarks

ISO 32000-2 §8.9.5.2: Dmin + raw × (Dmax − Dmin) / (2^n − 1).