| 119 | } |
| 120 | |
| 121 | vec2f Corkscrew::at_exact(fl::u16 i) const { |
| 122 | // Get the unwrapped position |
| 123 | vec2f position = at_no_wrap(i); |
| 124 | |
| 125 | // Apply cylindrical wrapping to the x-position (like at_wrap does) |
| 126 | position.x = fl::fmodf(position.x, static_cast<float>(mWidth)); |
| 127 | |
| 128 | return position; |
| 129 | } |
| 130 | |
| 131 | |
| 132 | Tile2x2_u8 Corkscrew::at_splat_extrapolate(float i) const { |