An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# m4.js

[![npm version](http://img.shields.io/npm/v/@flyskywhy/m4.js.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[![npm downloads](http://img.shields.io/npm/dm/@flyskywhy/m4.js.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[![npm licence](http://img.shields.io/npm/l/@flyskywhy/m4.js.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/m4.js "View this project on npm")
[![Platform](https://img.shields.io/badge/platform-ios%20%7C%20android-989898.svg?style=flat-square)](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();
```