naming
This commit is contained in:
parent
267fa000f6
commit
c518e486b2
|
@ -3,8 +3,8 @@ class Vector3 {
|
||||||
this._size = 12;
|
this._size = 12;
|
||||||
this._ptr = ptr.buffer || new ArrayBuffer(this._size);
|
this._ptr = ptr.buffer || new ArrayBuffer(this._size);
|
||||||
this._data = new DataView(this._ptr);
|
this._data = new DataView(this._ptr);
|
||||||
for (const i of Object.keys(init)) {
|
for (const key of Object.keys(init)) {
|
||||||
this[i] = init[i];
|
this[key] = init[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get x() {
|
get x() {
|
||||||
|
@ -35,8 +35,8 @@ class Camera3D {
|
||||||
this._size = 44;
|
this._size = 44;
|
||||||
this._ptr = ptr.buffer || new ArrayBuffer(this._size);
|
this._ptr = ptr.buffer || new ArrayBuffer(this._size);
|
||||||
this._data = new DataView(this._ptr);
|
this._data = new DataView(this._ptr);
|
||||||
for (const i of Object.keys(init)) {
|
for (const key of Object.keys(init)) {
|
||||||
this[i] = init[i];
|
this[key] = init[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
get position() {
|
get position() {
|
||||||
|
|
Loading…
Reference in New Issue