3 ms·
That depends If you can live with evenly-sized squares, you can always center the clipping square, and you’re good for rotations, flips, and so on. If you want
by braythwayt 10y ago
That depends If you can live with evenly-sized squares, you can always center the clipping square, and you’re good for rotations, flips, and so on.
If you want odd-sized squares, or other shapes, then yes, you’ll need to know how to transform the clipping path/description as well.
All in a day’s work!
- eridius 10y agoAnother approach would be to allow a cell's value to be null, meaning it should be clipped, but then you run the risk of having transforms on the region quadtrees that cause the null cells to migrate inwards into the square (such that they cannot simply be clipped off later).
- jlas 10y agoOne can use recursive properties better if the structure divides equally. So if not having a strict quadtree is okay, they can divide the square into 3x3, 5x5, etc
- pacaro 10y agoFor odd size squares, simply duplicate the center row and column before rotating, then deduplicate after.
- deleted 10y ago[deleted]