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