https://github.com/flyskywhy/m4.js
Can import 'm4.js' as various webgl 3d math functions from https://github.com/gfxfundamentals/webgl-fundamentals/blob/master/webgl/resources/m4.js
https://github.com/flyskywhy/m4.js
3d android ios m4 math matrix4 native opengl react-native webgl webgl-fundamentals
Last synced: 2 months ago
JSON representation
Can import 'm4.js' as various webgl 3d math functions from https://github.com/gfxfundamentals/webgl-fundamentals/blob/master/webgl/resources/m4.js
- Host: GitHub
- URL: https://github.com/flyskywhy/m4.js
- Owner: flyskywhy
- Created: 2022-09-27T08:55:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T13:28:57.000Z (over 3 years ago)
- Last Synced: 2025-10-28T23:23:57.389Z (8 months ago)
- Topics: 3d, android, ios, m4, math, matrix4, native, opengl, react-native, webgl, webgl-fundamentals
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# m4.js
[](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
Can `import m4 from 'm4.js'` vs the original https://github.com/gfxfundamentals/webgl-fundamentals/blob/master/webgl/resources/m4.js
With [webgl-utils](https://github.com/Fi1osof/webgl-utils) and [@flyskywhy/react-native-gcanvas](https://github.com/flyskywhy/react-native-gcanvas), can practice code on Android or iOS when learning [WebGL Fundamentals](https://webglfundamentals.org/webgl/lessons/webgl-fundamentals.html).
## Install
```
npm install m4.js
```
## How to use
```
// Quick example
import m4 from 'm4.js';
// ...
var matrix = m4.identity();
```