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

Class Matrix3

examples/extern/gmath.bundle.js:925–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923 }
924}
925class Matrix3 {
926 ptr;
927 #internal;
928 get [0]() {
929 return new Proxy([
930 this.#internal[0],
931 this.#internal[1],
932 this.#internal[2]
933 ], {
934 set: (_target, prop, value)=>{
935 if (prop === "0" || prop === "1" || prop === "2") {
936 this.#internal[prop] = value;
937 return true;
938 }
939 return false;
940 }
941 });
942 }
943 set [0](val) {
944 this.#internal[0] = val[0];
945 this.#internal[1] = val[1];
946 this.#internal[2] = val[2];
947 }
948 get [1]() {
949 return new Proxy([
950 this.#internal[3],
951 this.#internal[4],
952 this.#internal[5]
953 ], {
954 set: (_target, prop, value)=>{
955 if (prop === "0" || prop === "1" || prop === "2") {
956 this.#internal[3 + prop] = value;
957 return true;
958 }
959 return false;
960 }
961 });
962 }
963 set [1](val) {
964 this.#internal[3] = val[0];
965 this.#internal[4] = val[1];
966 this.#internal[5] = val[2];
967 }
968 get [2]() {
969 return new Proxy([
970 this.#internal[6],
971 this.#internal[7],
972 this.#internal[8]
973 ], {
974 set: (_target, prop, value)=>{
975 if (prop === "0" || prop === "1" || prop === "2") {
976 this.#internal[6 + prop] = value;
977 return true;
978 }
979 return false;
980 }
981 });
982 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected