checkpoint prototype

This commit is contained in:
Stewart Allen 2023-01-09 14:55:17 -05:00
commit 849a55439b
12 changed files with 169 additions and 50 deletions

View file

@ -227,6 +227,12 @@ for (let i in AP) {
});
}
Float32Array.prototype.toShared = function() {
const newvert = new Float32Array(new SharedArrayBuffer(this.buffer.byteLength));
newvert.set(this);
return newvert;
};
String.prototype.reverse = function() {
return this.split('').reverse().join('');
};