internal/affine: avoid heap allocations by casting a variable to a concrete type
internal/affine: avoid heap allocations by casting a variable to a concrete type

This is a dirty hack but seems efficient.

Closes #2119

hajimehoshi/ebiten,hajimehoshi/ebiten