Mercurial > touhou
view pytouhou/game/particle.pxd @ 789:b5bca9274335
utils: Make some math functions const
Sadly f32::sqrt() isn’t const, so we can’t make normalize() const nor any
function which depends on it.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 04 Jan 2026 11:49:03 +0100 |
| parents | cd8a2baf468c |
| children |
line wrap: on
line source
from pytouhou.game.effect cimport Effect from pytouhou.utils.interpolator cimport Interpolator cdef class Particle(Effect): cdef long frame, duration cdef Interpolator pos_interpolator cpdef update(self)
