0.2.5 • Published 3 years ago

@azleur/vec2 v0.2.5

Weekly downloads
17
License
ISC
Repository
github
Last release
3 years ago

2D Vector class

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

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

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

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago