UNPKG
@erikyuzwa/rogue-punk
Version:
latest (0.3.6)
0.3.6
0.3.5
0.3.0
0.2.0
a JavaScript library to help you build your roguelike adventures
@erikyuzwa/rogue-punk
/
dist-es
/
Vector3d.js
26 lines
(25 loc)
•
371 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export
class
Vector3d
{
constructor
(x, y, z) {
this
.x = x;
this
.y = y;
this
.z = z; }
get
x() {
return
this
.x; }
set
x(x) {
this
.x = x; }
get
y() {
return
this
.y; }
set
y(y) {
this
.y = y; }
get
z() {
return
this
.z; }
set
z(z) {
this
.z = z; } }