humbletim / glm-js

JavaScript adaptation of the OpenGL Mathematics (GLM) C++ library interfaces. JavaScript adaptation of the OpenGL Mathematics (GLM) C++ library interfaces. (project currently inactive)
http://humbletim.github.io/glm-js/
Other
43 stars 5 forks source link

glm.mat2 is not implemented #17

Open davidson16807 opened 1 year ago

davidson16807 commented 1 year ago

I previously mentioned this here but figured it would be more appropriate to write a new issue for it. I've been using this library pretty heavily to build a 2d graphics application, but I've been hurting from a lack of mat2s. I expect a lot of people might have similar use cases since 2d graphics application are pretty common in web browsers, likely even moreso than 3d applications, and people could benefit from having a common frame of mind for both 2d and 3d problems.

humbletim commented 9 months ago

Hi Carl,

I apologize for the delay in responding, and I understand how frustrating it must have been to miss mat2s functionality, especially since you raised this issue almost a year ago. As you might be aware, the glm-js project is currently in the process of sunsetting and is no longer actively maintained (see discussion #19 for details).

I wish I could offer a direct solution for your mat2s needs, but unfortunately, I can't actively develop the project anymore. However, I appreciate your suggestion and completely agree that exploring common frameworks across different domains, like 2D and 3D, can be incredibly valuable. I've actually seen some interesting projects using 2D subsystems within 3D applications that leverage GLM concepts. Maybe your idea could spark similar creative solutions in the future, even if not directly within glm-js itself.

While I can't offer direct support for mat2s, the concept of mat libraries suggests interesting possibilities. The self-similar nature of matrix math implies that adding support for different dimensions could be feasible, especially when existing libraries like three.js already handle higher-dimensional matrices. While three.js currently doesn't offer Matrix2 support, exploring the potential for adapting its existing code structure could be a worthwhile avenue for future exploration if the need arises.

Thank you again for bringing this up and for your understanding. I also appreciate your support in the previous thread.

Best regards, -Tim