- #1
- 169
- 35
Hey everyone, I'm trying to figure out how to rotate a grid of pixels, but I'm have a tough time. For simplicity sake, let's assume the pixels are in an 2 dimensional array, and each index is in a multiple of 8 (0-7, 0-15, etc).
Now comes the fun parts:
1.) I can't use floating point numbers/precision
2.) I can't use trig functions (no sine or cosine)
3.) I have no clue where to begin
The first 2 restrictions comes from the processor (m68k, these operations aren't supported natively, and I think being 7.5mhz, trig functions would be painfully slow).
Is this possible using just integers? The language is a dialect of BASIC.
Thanks!
Now comes the fun parts:
1.) I can't use floating point numbers/precision
2.) I can't use trig functions (no sine or cosine)
3.) I have no clue where to begin
The first 2 restrictions comes from the processor (m68k, these operations aren't supported natively, and I think being 7.5mhz, trig functions would be painfully slow).
Is this possible using just integers? The language is a dialect of BASIC.
Thanks!