UNPKG
osrscachereader
Version:
latest (1.1.3)
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Read Old-School Runescape Cache files
github.com/Dezinater/osrscachereader
Dezinater/osrscachereader
osrscachereader
/
src
/
cacheReader
/
cacheTypes
/
anim
/
Vector.js
12 lines
(10 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export default
class
Vector
{
constructor
(x, y, z) {
this
.x = x;
this
.y = y;
this
.z = z; } magnitude() {
return
Math.sqrt(
this
.y *
this
.y +
this
.x *
this
.x +
this
.z *
this
.z); } }