メインコンテンツまでスキップ

変換手順

                          I-n

残るのは 2 の因子である。これは、状況に応じて (I-n) ビットの算術左シフト、または (n-I) ビットの算術右シフトで実現できる。オフセット項 S は、その後に整数加算で加えればよい。

NGP 座標を整数のデバイス座標へ変換する手順は次のとおりである。

               1.   move coordinate to a register and extend sign
2. integer multiply by Q (if necessary)
3. arithmetic shift left by (I-n)
4. integer add S

この手順は、一般に次の手順よりはるかに高速である。

               1.   move coordinate to register and extend sign
2. float fractional coordinate
3. floating point multiply
4. floating point add
5. conversion to fixed point
       [ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by BBN Corp. under the ]
[ direction of Alex McKenzie. 1/97 ]