This commit is contained in:
zongor 2024-05-27 12:07:04 -04:00
parent 267fa000f6
commit c518e486b2
1 changed files with 4 additions and 4 deletions

View File

@ -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() {