@2gis/gl-matrix

中文文档
2.4.6发布于 2020/02/11MITTypeScriptESM + CJS零依赖近 30 天下载 2670

Javascript Matrix and Vector library for High Performance WebGL apps

原始使用文档
文档目录3 节
  1. Learn More
  2. Contributing
  3. Release

glMatrix Build Status

Javascript has evolved into a language capable of handling realtime 3D graphics, via WebGL, and computationally intensive tasks such as physics simulations. These types of applications demand high performance vector and matrix math, which is something that Javascript doesn't provide by default. glMatrix to the rescue!

glMatrix is designed to perform vector and matrix operations stupidly fast! By hand-tuning each function for maximum performance and encouraging efficient usage patterns through API conventions, glMatrix will help you get the most out of your browsers Javascript engine.

Learn More

For documentation, news, tutorials, and more visit the glMatrix Homepage

Contributing

Contributions are welcome! Please provide unit tests for new functionality. (See TESTING.md for details)

Release

npm version patch && git push --follow-tags && npm run pub

版本与发布记录

@2gis/gl-matrix 共发布 7 个版本,首次发布于 2017/08/23;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.4.6latest2020/02/116 年前
2.4.52017/11/308 年前
2.4.42017/11/308 年前
2.4.32017/10/109 年前
2.4.22017/10/109 年前
2.4.12017/08/259 年前

关于 @2gis/gl-matrix 的常见问题

@2gis/gl-matrix 是什么?

Javascript Matrix and Vector library for High Performance WebGL apps

如何安装 @2gis/gl-matrix?

在项目目录运行 npm install @2gis/gl-matrix,或使用 pnpm add / yarn add / bun add。

@2gis/gl-matrix 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@2gis/gl-matrix 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@2gis/gl-matrix 可以商用吗?

@2gis/gl-matrix 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@2gis/gl-matrix 的下载量有多少?

根据 npm 官方下载统计,@2gis/gl-matrix 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,670 次,日均约 89 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@2gis/gl-matrix 还在维护吗?

最新版本 2.4.6 发布于 2020/02/11(6 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/08/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。