Quantizer for converting between LPOINT2D and DPOINT2D with scales and offsets. More...
#include <mi32/quantizer.h>

Public Member Functions | |
| QUANTIZER_LPOINT2D (const DPOINT2D &Scale, const DPOINT2D &Offset) | |
| void | CalcDouble2D (const LPOINT2D &ptQ, DPOINT2D &ptD) const |
| DPOINT2D | CalcDouble2D (const LPOINT2D &ptQ) const |
| void | CalcInt2D (const DPOINT2D &ptD, LPOINT2D &ptQ) const |
| LPOINT2D | CalcInt2D (const DPOINT2D &ptD) const |
| void | CalcRaw2D (const DPOINT2D &ptD, DPOINT2D &ptRaw) const |
| const QUANTIZER< INT32 > & | GetX () const |
| const QUANTIZER< INT32 > & | GetY () const |
| m_Y (ScaleY, OffsetY) | |
| void | Set2D (const DPOINT2D &Scale, const DPOINT2D &Offset) |
| void | SetX (double ScaleX, double OffsetX) |
| void | SetX (const QUANTIZER_VALUES &QuantX) |
| void | SetY (double ScaleY, double OffsetY) |
| void | SetY (const QUANTIZER_VALUES &QuantY) |
Quantizer for converting between LPOINT2D and DPOINT2D with scales and offsets.
Construct with DPOINT2D scales and offsets.
| Scale | Scale from "quantized" to "double" | |
| Offset | Offset from "quantized" to "double" |
Calculate "raw" (unrounded) point.
| ptD | Dequantized point | |
| ptRaw | Raw (unrounded) values returned |
| QUANTIZER_LPOINT2D::m_Y | ( | ScaleY | , | |
| OffsetY | ||||
| ) | [inline] |
Set scale and offset values from DPOINT2D.
| void QUANTIZER_LPOINT2D::SetX | ( | double | ScaleX, | |
| double | OffsetX | |||
| ) | [inline] |
Set X quantizer scale and offset.
| OffsetX | X scale X offset |
| void QUANTIZER_LPOINT2D::SetX | ( | const QUANTIZER_VALUES & | QuantX | ) | [inline] |
Set X quantizer.
| void QUANTIZER_LPOINT2D::SetY | ( | double | ScaleY, | |
| double | OffsetY | |||
| ) | [inline] |
Set Y quantizer scale and offset.
| OffsetY | Y scale Y offset |
| void QUANTIZER_LPOINT2D::SetY | ( | const QUANTIZER_VALUES & | QuantY | ) | [inline] |
Set Y quantizer.
1.6.1