Zuzu-Typ / PyGLM

Fast OpenGL Mathematics (GLM) for Python
zlib License
214 stars 29 forks source link

Fix matmul operator #260

Open Zuzu-Typ opened 1 month ago

Zuzu-Typ commented 1 month ago

The matmul operator should be implemented as:

vector1 @ vector2 == glm.dot(v1, v2)

# already the case:
matrix @ vector == matrix * vector

# already the case:
matrix1 @ matrix2 == matrix1 * matrix2