# gl-matrix-core

> a npm wrapper for charlottegore's gl-matrix libraries

Latest version **0.0.6** (published 2015-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install gl-matrix-core
pnpm add gl-matrix-core
yarn add gl-matrix-core
bun add gl-matrix-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2015-10-30 |
| First published | 2015-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt Bell |
| Maintainers | greengiant83 |
| Keywords | matrx, quaternion, vector |

## Links

- npm: https://www.npmjs.com/package/gl-matrix-core
- Repository: https://github.com/greengiant83/gl-matrix-core
- Issues: https://github.com/greengiant83/gl-matrix-core/issues
- npm.io page: https://npm.io/package/gl-matrix-core

## Recent versions

- 0.0.6 (latest) — 2015-10-30
- 0.0.5 — 2015-10-30
- 0.0.4 — 2015-10-30
- 0.0.3 — 2015-10-30
- 0.0.2 — 2015-10-30
- 0.0.1 — 2015-10-30
- 1.0.0 — 2015-10-30

## README

gl-matrix-core
=========

This module wraps up @charlottegore's 3d gl-matrix components in a way that is compatible with node.js. At the time I wrote this, his npm modules couldn't be imported using require() properly due to some name issues.

## Installation

  npm install gl-matrix-core

## Usage
	
	var gl = require("gl-matrix-core");

	var v = gl.vec3.fromValues(0, 0, 1);
	var q = gl.quat.create();
	var transform = gl.mat3.create();

	console.log("v: ", v);

	gl.quat.setAxisAngle(q, gl.vec3.clone([0, 1, 0]), Math.PI / 2);
	console.log("quat: ", q);

	gl.mat3.fromQuat(transform, q);
	console.log("transform: ", transform);

	var newV = gl.vec3.create();
	gl.mat3.mul(newV, transform, v);

	console.log("newV: ", newV);

---
_Source: https://npm.io/package/gl-matrix-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
