Mercurial > touhou
view pytouhou/utils/maths.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 | 7f016dfbdfb1 |
| children |
line wrap: on
line source
from .matrix cimport Matrix cdef Matrix *ortho_2d(float left, float right, float bottom, float top) nogil cdef Matrix *perspective(float fovy, float aspect, float zNear, float zFar) nogil cdef Matrix *setup_camera(float dx, float dy, float dz)
