1
Fork 0
solar-conflux/javascript/ultra32
Matei Adriel 2ecbd6d4b4
javascript(ultra32): added rotate
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-01-20 14:36:47 +02:00
..
.gitignore javascript(ultra32): added rotate 2019-01-20 14:36:47 +02:00
app.js javascript(ultra32): added rotate 2019-01-20 14:36:47 +02:00
LICENSE javascript(ultra32): Initial commit 2019-01-19 18:18:35 +02:00
package-lock.json javascript(ultra32): added basic functions 2019-01-19 20:27:57 +02:00
package.json javascript(ultra32): added basic functions 2019-01-19 20:27:57 +02:00
README.md javascript(ultra32): added basic functions 2019-01-19 20:27:57 +02:00

Ultra32

A vector package using the fast float32array

Get started:

To get started, install ultra32:

npm install ultra32 --save

A ultra32 vector is just a Float32Array.

const vec = new Float32Array([0,0]);

You can perform multiple operations:

add(vec,new Float32Array([1,2]));
mul(vec,3);
mirror(vec);

console.log(vec); //Float32Array [ -3, -6 ]