This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:pixeltocell [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:pixeltocell [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| <- [[.: | <- [[.: | ||
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | PX PY | X Y | [ float float - float float ] | |
| === Description === | === Description === | ||
| + | Converts pixel coordinates to cell coordinates. Cell coordinates are returned as floats. Pixel:Cell ratio is 4:1 | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | f1 = GetFloatFromStack(); | + | 20 40 PixelToCell |
| - | stack.Push(new Data(x)); | + | |
| - | stack.Push(new Data(y)); | + | 1 2 CellToPixel PixelToCell |
| + | |||
| + | 21.5 42.5 PixelToCell CellToPixel | ||
| </ | </ | ||