摘要 |
PURPOSE:To reduce the number of times of multiplication/division and to execute rapidly coordinate conversion by executing the division of the size of the 1st coordinate system/the size of the 2nd coordinate system only in the initial time and storing the divided result to use the stored value in the succeeding operation. CONSTITUTION:A control device 23 inputs DELTAX from a storage device 24 to a register 21, shifts the input data to the left by l bits, inputs DELTAx to a register 22, divides the contents of the register 21 by the contents of the register 22 and stores the divided result as a variable (w). When the coordinate of data (w) is to be converted after storing the obtained variable (w) in the storage device 24, the control device 23 inputs (x) and x0 from the storage device 24 to the registers 21, 22 respectively and subtracts the contents of the register 22 from the contents of the register 21. The control device 23 inputs the variable (w) in the register 22, multiplies the contents of the register 21 by th contents of the register 22 and shifts the multiplied result to the right by l bits. Then, the control device 23 inputs X0 to the register 22, adds the contents of the register 22 to the contents of the register 21 and stored X in the register 21. |