Skip to content
Graylin Kim edited this page Jan 18, 2012 · 1 revision

Coordinates are given within a large number of events. For example, each click event obviously holds the coordinates to where the click occurred.

Each coordinate dimension is in 20 bits where the first byte is the whole portion and the next 1.5 bytes represents the fraction. The first bit of the fraction represents 1/2 and the second bit represents 1/4 and so on until the last bit which is 1/4096. The actual fractional portion of the coordinate is retrieved through the summation of the bits that are 1. For example: 0.101000000000 is 0.625 .

Clone this wiki locally