0.1.2 • Published 4 years ago

@azleur/vec3 v0.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

2D Vector class

Vec3 is yet another 3D vector class. It has a rich feature set for basic vector creation and manipulation. It looks like this:

const vec1 = new Vec3(1, 2, 3); // vec1 = {x: 1, y: 2, z: 3}
vec1.x = 4; // vec1 = {x: 4, y: 2, z: 3}
const vec2 = vec1.Times(3); // vec2 = {x: 12, y: 6, z: 9}
const vec3 = vec2.Sub(vec1); // vec3 = {x: 8, y: 4, z: 6}
...

The code is a single TypeScript file with doc comments, so take a look for more details!

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago