MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / Matrix4

Class Matrix4

examples/extern/gmath.bundle.js:1163–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161 }
1162}
1163class Matrix4 {
1164 ptr;
1165 #internal;
1166 get [0]() {
1167 return new Proxy([
1168 this.#internal[0],
1169 this.#internal[1],
1170 this.#internal[2],
1171 this.#internal[3],
1172 ], {
1173 set: (_target, prop, value)=>{
1174 if (prop === "0" || prop === "1" || prop === "2" || prop === "3") {
1175 this.#internal[prop] = value;
1176 return true;
1177 }
1178 return false;
1179 }
1180 });
1181 }
1182 set [0](val) {
1183 this.#internal[0] = val[0];
1184 this.#internal[1] = val[1];
1185 this.#internal[2] = val[2];
1186 this.#internal[3] = val[3];
1187 }
1188 get [1]() {
1189 return new Proxy([
1190 this.#internal[4],
1191 this.#internal[5],
1192 this.#internal[6],
1193 this.#internal[7],
1194 ], {
1195 set: (_target, prop, value)=>{
1196 if (prop === "0" || prop === "1" || prop === "2" || prop === "3") {
1197 this.#internal[4 + prop] = value;
1198 return true;
1199 }
1200 return false;
1201 }
1202 });
1203 }
1204 set [1](val) {
1205 this.#internal[4] = val[0];
1206 this.#internal[5] = val[1];
1207 this.#internal[6] = val[2];
1208 this.#internal[7] = val[3];
1209 }
1210 get [2]() {
1211 return new Proxy([
1212 this.#internal[8],
1213 this.#internal[9],
1214 this.#internal[10],
1215 this.#internal[11],
1216 ], {
1217 set: (_target, prop, value)=>{
1218 if (prop === "0" || prop === "1" || prop === "2" || prop === "3") {
1219 this.#internal[8 + prop] = value;
1220 return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected