How to use m12 method in wpt

Best JavaScript code snippet using wpt

data-licensees.js

Source:data-licensees.js Github

copy

Full Screen

1var licensees = [2 {3 id: 1,4 name: "Commonwealth Bank",5 logo: "images/logo_1.png",6 total: 1253,7 movement: {8 all: {9 m1: {10 loss: 1,11 gain: 112 },13 m3: {14 loss: 1,15 gain: 116 },17 m6: {18 loss: 1,19 gain: 120 },21 m12: {22 loss: 1,23 gain: 124 },25 m24: {26 loss: 1,27 gain: 128 }29 },30 nsw: {31 m1: {32 loss: 1,33 gain: 134 },35 m3: {36 loss: 1,37 gain: 138 },39 m6: {40 loss: 1,41 gain: 142 },43 m12: {44 loss: 1,45 gain: 146 },47 m24: {48 loss: 1,49 gain: 150 }51 },52 qld: {53 m1: {54 loss: 1,55 gain: 156 },57 m3: {58 loss: 1,59 gain: 160 },61 m6: {62 loss: 1,63 gain: 164 },65 m12: {66 loss: 1,67 gain: 168 },69 m24: {70 loss: 1,71 gain: 172 }73 },74 vic: {75 m1: {76 loss: 1,77 gain: 178 },79 m3: {80 loss: 1,81 gain: 182 },83 m6: {84 loss: 1,85 gain: 186 },87 m12: {88 loss: 1,89 gain: 190 },91 m24: {92 loss: 1,93 gain: 194 }95 },96 wa: {97 m1: {98 loss: 1,99 gain: 1100 },101 m3: {102 loss: 1,103 gain: 1104 },105 m6: {106 loss: 1,107 gain: 1108 },109 m12: {110 loss: 1,111 gain: 1112 },113 m24: {114 loss: 1,115 gain: 1116 }117 },118 sa: {119 m1: {120 loss: 1,121 gain: 1122 },123 m3: {124 loss: 1,125 gain: 1126 },127 m6: {128 loss: 1,129 gain: 1130 },131 m12: {132 loss: 1,133 gain: 1134 },135 m24: {136 loss: 1,137 gain: 1138 }139 },140 nt: {141 m1: {142 loss: 1,143 gain: 1144 },145 m3: {146 loss: 1,147 gain: 1148 },149 m6: {150 loss: 1,151 gain: 1152 },153 m12: {154 loss: 1,155 gain: 1156 },157 m24: {158 loss: 1,159 gain: 1160 }161 },162 act: {163 m1: {164 loss: 1,165 gain: 1166 },167 m3: {168 loss: 1,169 gain: 1170 },171 m6: {172 loss: 1,173 gain: 1174 },175 m12: {176 loss: 1,177 gain: 1178 },179 m24: {180 loss: 1,181 gain: 1182 }183 },184 tas: {185 m1: {186 loss: 1,187 gain: 1188 },189 m3: {190 loss: 1,191 gain: 1192 },193 m6: {194 loss: 1,195 gain: 1196 },197 m12: {198 loss: 1,199 gain: 1200 },201 m24: {202 loss: 1,203 gain: 1204 }205 }206 }207 },208 {209 id: 2,210 name: "AMP",211 logo: "images/logo_2.png",212 total: 1107,213 movement: {214 all: {215 m1: {216 loss: 1,217 gain: 1218 },219 m3: {220 loss: 1,221 gain: 1222 },223 m6: {224 loss: 1,225 gain: 1226 },227 m12: {228 loss: 1,229 gain: 1230 },231 m24: {232 loss: 1,233 gain: 1234 }235 },236 nsw: {237 m1: {238 loss: 1,239 gain: 1240 },241 m3: {242 loss: 1,243 gain: 1244 },245 m6: {246 loss: 1,247 gain: 1248 },249 m12: {250 loss: 1,251 gain: 1252 },253 m24: {254 loss: 1,255 gain: 1256 }257 },258 qld: {259 m1: {260 loss: 1,261 gain: 1262 },263 m3: {264 loss: 1,265 gain: 1266 },267 m6: {268 loss: 1,269 gain: 1270 },271 m12: {272 loss: 1,273 gain: 1274 },275 m24: {276 loss: 1,277 gain: 1278 }279 },280 vic: {281 m1: {282 loss: 1,283 gain: 1284 },285 m3: {286 loss: 1,287 gain: 1288 },289 m6: {290 loss: 1,291 gain: 1292 },293 m12: {294 loss: 1,295 gain: 1296 },297 m24: {298 loss: 1,299 gain: 1300 }301 },302 wa: {303 m1: {304 loss: 1,305 gain: 1306 },307 m3: {308 loss: 1,309 gain: 1310 },311 m6: {312 loss: 1,313 gain: 1314 },315 m12: {316 loss: 1,317 gain: 1318 },319 m24: {320 loss: 1,321 gain: 1322 }323 },324 sa: {325 m1: {326 loss: 1,327 gain: 1328 },329 m3: {330 loss: 1,331 gain: 1332 },333 m6: {334 loss: 1,335 gain: 1336 },337 m12: {338 loss: 1,339 gain: 1340 },341 m24: {342 loss: 1,343 gain: 1344 }345 },346 nt: {347 m1: {348 loss: 1,349 gain: 1350 },351 m3: {352 loss: 1,353 gain: 1354 },355 m6: {356 loss: 1,357 gain: 1358 },359 m12: {360 loss: 1,361 gain: 1362 },363 m24: {364 loss: 1,365 gain: 1366 }367 },368 act: {369 m1: {370 loss: 1,371 gain: 1372 },373 m3: {374 loss: 1,375 gain: 1376 },377 m6: {378 loss: 1,379 gain: 1380 },381 m12: {382 loss: 1,383 gain: 1384 },385 m24: {386 loss: 1,387 gain: 1388 }389 },390 tas: {391 m1: {392 loss: 1,393 gain: 1394 },395 m3: {396 loss: 1,397 gain: 1398 },399 m6: {400 loss: 1,401 gain: 1402 },403 m12: {404 loss: 1,405 gain: 1406 },407 m24: {408 loss: 1,409 gain: 1410 }411 }412 }413 },414 {415 id: 3,416 name: "NAB",417 logo: "images/logo_3.png",418 total: 1002,419 movement: {420 all: {421 m1: {422 loss: 1,423 gain: 1424 },425 m3: {426 loss: 1,427 gain: 1428 },429 m6: {430 loss: 1,431 gain: 1432 },433 m12: {434 loss: 1,435 gain: 1436 },437 m24: {438 loss: 1,439 gain: 1440 }441 },442 nsw: {443 m1: {444 loss: 1,445 gain: 1446 },447 m3: {448 loss: 1,449 gain: 1450 },451 m6: {452 loss: 1,453 gain: 1454 },455 m12: {456 loss: 1,457 gain: 1458 },459 m24: {460 loss: 1,461 gain: 1462 }463 },464 qld: {465 m1: {466 loss: 1,467 gain: 1468 },469 m3: {470 loss: 1,471 gain: 1472 },473 m6: {474 loss: 1,475 gain: 1476 },477 m12: {478 loss: 1,479 gain: 1480 },481 m24: {482 loss: 1,483 gain: 1484 }485 },486 vic: {487 m1: {488 loss: 1,489 gain: 1490 },491 m3: {492 loss: 1,493 gain: 1494 },495 m6: {496 loss: 1,497 gain: 1498 },499 m12: {500 loss: 1,501 gain: 1502 },503 m24: {504 loss: 1,505 gain: 1506 }507 },508 wa: {509 m1: {510 loss: 1,511 gain: 1512 },513 m3: {514 loss: 1,515 gain: 1516 },517 m6: {518 loss: 1,519 gain: 1520 },521 m12: {522 loss: 1,523 gain: 1524 },525 m24: {526 loss: 1,527 gain: 1528 }529 },530 sa: {531 m1: {532 loss: 1,533 gain: 1534 },535 m3: {536 loss: 1,537 gain: 1538 },539 m6: {540 loss: 1,541 gain: 1542 },543 m12: {544 loss: 1,545 gain: 1546 },547 m24: {548 loss: 1,549 gain: 1550 }551 },552 nt: {553 m1: {554 loss: 1,555 gain: 1556 },557 m3: {558 loss: 1,559 gain: 1560 },561 m6: {562 loss: 1,563 gain: 1564 },565 m12: {566 loss: 1,567 gain: 1568 },569 m24: {570 loss: 1,571 gain: 1572 }573 },574 act: {575 m1: {576 loss: 1,577 gain: 1578 },579 m3: {580 loss: 1,581 gain: 1582 },583 m6: {584 loss: 1,585 gain: 1586 },587 m12: {588 loss: 1,589 gain: 1590 },591 m24: {592 loss: 1,593 gain: 1594 }595 },596 tas: {597 m1: {598 loss: 1,599 gain: 1600 },601 m3: {602 loss: 1,603 gain: 1604 },605 m6: {606 loss: 1,607 gain: 1608 },609 m12: {610 loss: 1,611 gain: 1612 },613 m24: {614 loss: 1,615 gain: 1616 }617 }618 }619 },620 {621 id: 4,622 name: "Westpac/BT",623 logo: "images/logo_4.png",624 total: 946,625 movement: {626 all: {627 m1: {628 loss: 1,629 gain: 1630 },631 m3: {632 loss: 1,633 gain: 1634 },635 m6: {636 loss: 1,637 gain: 1638 },639 m12: {640 loss: 1,641 gain: 1642 },643 m24: {644 loss: 1,645 gain: 1646 }647 },648 nsw: {649 m1: {650 loss: 1,651 gain: 1652 },653 m3: {654 loss: 1,655 gain: 1656 },657 m6: {658 loss: 1,659 gain: 1660 },661 m12: {662 loss: 1,663 gain: 1664 },665 m24: {666 loss: 1,667 gain: 1668 }669 },670 qld: {671 m1: {672 loss: 1,673 gain: 1674 },675 m3: {676 loss: 1,677 gain: 1678 },679 m6: {680 loss: 1,681 gain: 1682 },683 m12: {684 loss: 1,685 gain: 1686 },687 m24: {688 loss: 1,689 gain: 1690 }691 },692 vic: {693 m1: {694 loss: 1,695 gain: 1696 },697 m3: {698 loss: 1,699 gain: 1700 },701 m6: {702 loss: 1,703 gain: 1704 },705 m12: {706 loss: 1,707 gain: 1708 },709 m24: {710 loss: 1,711 gain: 1712 }713 },714 wa: {715 m1: {716 loss: 1,717 gain: 1718 },719 m3: {720 loss: 1,721 gain: 1722 },723 m6: {724 loss: 1,725 gain: 1726 },727 m12: {728 loss: 1,729 gain: 1730 },731 m24: {732 loss: 1,733 gain: 1734 }735 },736 sa: {737 m1: {738 loss: 1,739 gain: 1740 },741 m3: {742 loss: 1,743 gain: 1744 },745 m6: {746 loss: 1,747 gain: 1748 },749 m12: {750 loss: 1,751 gain: 1752 },753 m24: {754 loss: 1,755 gain: 1756 }757 },758 nt: {759 m1: {760 loss: 1,761 gain: 1762 },763 m3: {764 loss: 1,765 gain: 1766 },767 m6: {768 loss: 1,769 gain: 1770 },771 m12: {772 loss: 1,773 gain: 1774 },775 m24: {776 loss: 1,777 gain: 1778 }779 },780 act: {781 m1: {782 loss: 1,783 gain: 1784 },785 m3: {786 loss: 1,787 gain: 1788 },789 m6: {790 loss: 1,791 gain: 1792 },793 m12: {794 loss: 1,795 gain: 1796 },797 m24: {798 loss: 1,799 gain: 1800 }801 },802 tas: {803 m1: {804 loss: 1,805 gain: 1806 },807 m3: {808 loss: 1,809 gain: 1810 },811 m6: {812 loss: 1,813 gain: 1814 },815 m12: {816 loss: 1,817 gain: 1818 },819 m24: {820 loss: 1,821 gain: 1822 }823 }824 }825 },826 {827 id: 5,828 name: "IOOF",829 logo: "images/logo_5.png",830 total: 256,831 movement: {832 all: {833 m1: {834 loss: 1,835 gain: 1836 },837 m3: {838 loss: 1,839 gain: 1840 },841 m6: {842 loss: 1,843 gain: 1844 },845 m12: {846 loss: 1,847 gain: 1848 },849 m24: {850 loss: 1,851 gain: 1852 }853 },854 nsw: {855 m1: {856 loss: 1,857 gain: 1858 },859 m3: {860 loss: 1,861 gain: 1862 },863 m6: {864 loss: 1,865 gain: 1866 },867 m12: {868 loss: 1,869 gain: 1870 },871 m24: {872 loss: 1,873 gain: 1874 }875 },876 qld: {877 m1: {878 loss: 1,879 gain: 1880 },881 m3: {882 loss: 1,883 gain: 1884 },885 m6: {886 loss: 1,887 gain: 1888 },889 m12: {890 loss: 1,891 gain: 1892 },893 m24: {894 loss: 1,895 gain: 1896 }897 },898 vic: {899 m1: {900 loss: 1,901 gain: 1902 },903 m3: {904 loss: 1,905 gain: 1906 },907 m6: {908 loss: 1,909 gain: 1910 },911 m12: {912 loss: 1,913 gain: 1914 },915 m24: {916 loss: 1,917 gain: 1918 }919 },920 wa: {921 m1: {922 loss: 1,923 gain: 1924 },925 m3: {926 loss: 1,927 gain: 1928 },929 m6: {930 loss: 1,931 gain: 1932 },933 m12: {934 loss: 1,935 gain: 1936 },937 m24: {938 loss: 1,939 gain: 1940 }941 },942 sa: {943 m1: {944 loss: 1,945 gain: 1946 },947 m3: {948 loss: 1,949 gain: 1950 },951 m6: {952 loss: 1,953 gain: 1954 },955 m12: {956 loss: 1,957 gain: 1958 },959 m24: {960 loss: 1,961 gain: 1962 }963 },964 nt: {965 m1: {966 loss: 1,967 gain: 1968 },969 m3: {970 loss: 1,971 gain: 1972 },973 m6: {974 loss: 1,975 gain: 1976 },977 m12: {978 loss: 1,979 gain: 1980 },981 m24: {982 loss: 1,983 gain: 1984 }985 },986 act: {987 m1: {988 loss: 1,989 gain: 1990 },991 m3: {992 loss: 1,993 gain: 1994 },995 m6: {996 loss: 1,997 gain: 1998 },999 m12: {1000 loss: 1,1001 gain: 11002 },1003 m24: {1004 loss: 1,1005 gain: 11006 }1007 },1008 tas: {1009 m1: {1010 loss: 1,1011 gain: 11012 },1013 m3: {1014 loss: 1,1015 gain: 11016 },1017 m6: {1018 loss: 1,1019 gain: 11020 },1021 m12: {1022 loss: 1,1023 gain: 11024 },1025 m24: {1026 loss: 1,1027 gain: 11028 }1029 }1030 }1031 },1032 {1033 id: 6,1034 name: "Synchron",1035 logo: "images/logo_6.png",1036 total: 523,1037 movement: {1038 all: {1039 m1: {1040 loss: 1,1041 gain: 11042 },1043 m3: {1044 loss: 1,1045 gain: 11046 },1047 m6: {1048 loss: 1,1049 gain: 11050 },1051 m12: {1052 loss: 1,1053 gain: 11054 },1055 m24: {1056 loss: 1,1057 gain: 11058 }1059 },1060 nsw: {1061 m1: {1062 loss: 1,1063 gain: 11064 },1065 m3: {1066 loss: 1,1067 gain: 11068 },1069 m6: {1070 loss: 1,1071 gain: 11072 },1073 m12: {1074 loss: 1,1075 gain: 11076 },1077 m24: {1078 loss: 1,1079 gain: 11080 }1081 },1082 qld: {1083 m1: {1084 loss: 1,1085 gain: 11086 },1087 m3: {1088 loss: 1,1089 gain: 11090 },1091 m6: {1092 loss: 1,1093 gain: 11094 },1095 m12: {1096 loss: 1,1097 gain: 11098 },1099 m24: {1100 loss: 1,1101 gain: 11102 }1103 },1104 vic: {1105 m1: {1106 loss: 1,1107 gain: 11108 },1109 m3: {1110 loss: 1,1111 gain: 11112 },1113 m6: {1114 loss: 1,1115 gain: 11116 },1117 m12: {1118 loss: 1,1119 gain: 11120 },1121 m24: {1122 loss: 1,1123 gain: 11124 }1125 },1126 wa: {1127 m1: {1128 loss: 1,1129 gain: 11130 },1131 m3: {1132 loss: 1,1133 gain: 11134 },1135 m6: {1136 loss: 1,1137 gain: 11138 },1139 m12: {1140 loss: 1,1141 gain: 11142 },1143 m24: {1144 loss: 1,1145 gain: 11146 }1147 },1148 sa: {1149 m1: {1150 loss: 1,1151 gain: 11152 },1153 m3: {1154 loss: 1,1155 gain: 11156 },1157 m6: {1158 loss: 1,1159 gain: 11160 },1161 m12: {1162 loss: 1,1163 gain: 11164 },1165 m24: {1166 loss: 1,1167 gain: 11168 }1169 },1170 nt: {1171 m1: {1172 loss: 1,1173 gain: 11174 },1175 m3: {1176 loss: 1,1177 gain: 11178 },1179 m6: {1180 loss: 1,1181 gain: 11182 },1183 m12: {1184 loss: 1,1185 gain: 11186 },1187 m24: {1188 loss: 1,1189 gain: 11190 }1191 },1192 act: {1193 m1: {1194 loss: 1,1195 gain: 11196 },1197 m3: {1198 loss: 1,1199 gain: 11200 },1201 m6: {1202 loss: 1,1203 gain: 11204 },1205 m12: {1206 loss: 1,1207 gain: 11208 },1209 m24: {1210 loss: 1,1211 gain: 11212 }1213 },1214 tas: {1215 m1: {1216 loss: 1,1217 gain: 11218 },1219 m3: {1220 loss: 1,1221 gain: 11222 },1223 m6: {1224 loss: 1,1225 gain: 11226 },1227 m12: {1228 loss: 1,1229 gain: 11230 },1231 m24: {1232 loss: 1,1233 gain: 11234 }1235 }1236 }1237 },1238 {1239 id: 7,1240 name: "Centrepoint Alliance",1241 logo: "images/logo_7.png",1242 total: 692,1243 movement: {1244 all: {1245 m1: {1246 loss: 1,1247 gain: 11248 },1249 m3: {1250 loss: 1,1251 gain: 11252 },1253 m6: {1254 loss: 1,1255 gain: 11256 },1257 m12: {1258 loss: 1,1259 gain: 11260 },1261 m24: {1262 loss: 1,1263 gain: 11264 }1265 },1266 nsw: {1267 m1: {1268 loss: 1,1269 gain: 11270 },1271 m3: {1272 loss: 1,1273 gain: 11274 },1275 m6: {1276 loss: 1,1277 gain: 11278 },1279 m12: {1280 loss: 1,1281 gain: 11282 },1283 m24: {1284 loss: 1,1285 gain: 11286 }1287 },1288 qld: {1289 m1: {1290 loss: 1,1291 gain: 11292 },1293 m3: {1294 loss: 1,1295 gain: 11296 },1297 m6: {1298 loss: 1,1299 gain: 11300 },1301 m12: {1302 loss: 1,1303 gain: 11304 },1305 m24: {1306 loss: 1,1307 gain: 11308 }1309 },1310 vic: {1311 m1: {1312 loss: 1,1313 gain: 11314 },1315 m3: {1316 loss: 1,1317 gain: 11318 },1319 m6: {1320 loss: 1,1321 gain: 11322 },1323 m12: {1324 loss: 1,1325 gain: 11326 },1327 m24: {1328 loss: 1,1329 gain: 11330 }1331 },1332 wa: {1333 m1: {1334 loss: 1,1335 gain: 11336 },1337 m3: {1338 loss: 1,1339 gain: 11340 },1341 m6: {1342 loss: 1,1343 gain: 11344 },1345 m12: {1346 loss: 1,1347 gain: 11348 },1349 m24: {1350 loss: 1,1351 gain: 11352 }1353 },1354 sa: {1355 m1: {1356 loss: 1,1357 gain: 11358 },1359 m3: {1360 loss: 1,1361 gain: 11362 },1363 m6: {1364 loss: 1,1365 gain: 11366 },1367 m12: {1368 loss: 1,1369 gain: 11370 },1371 m24: {1372 loss: 1,1373 gain: 11374 }1375 },1376 nt: {1377 m1: {1378 loss: 1,1379 gain: 11380 },1381 m3: {1382 loss: 1,1383 gain: 11384 },1385 m6: {1386 loss: 1,1387 gain: 11388 },1389 m12: {1390 loss: 1,1391 gain: 11392 },1393 m24: {1394 loss: 1,1395 gain: 11396 }1397 },1398 act: {1399 m1: {1400 loss: 1,1401 gain: 11402 },1403 m3: {1404 loss: 1,1405 gain: 11406 },1407 m6: {1408 loss: 1,1409 gain: 11410 },1411 m12: {1412 loss: 1,1413 gain: 11414 },1415 m24: {1416 loss: 1,1417 gain: 11418 }1419 },1420 tas: {1421 m1: {1422 loss: 1,1423 gain: 11424 },1425 m3: {1426 loss: 1,1427 gain: 11428 },1429 m6: {1430 loss: 1,1431 gain: 11432 },1433 m12: {1434 loss: 1,1435 gain: 11436 },1437 m24: {1438 loss: 1,1439 gain: 11440 }1441 }1442 }1443 },1444 {1445 id: 8,1446 name: "Affinia",1447 logo: "images/logo_8.png",1448 total: 256,1449 movement: {1450 all: {1451 m1: {1452 loss: 1,1453 gain: 11454 },1455 m3: {1456 loss: 1,1457 gain: 11458 },1459 m6: {1460 loss: 1,1461 gain: 11462 },1463 m12: {1464 loss: 1,1465 gain: 11466 },1467 m24: {1468 loss: 1,1469 gain: 11470 }1471 },1472 nsw: {1473 m1: {1474 loss: 1,1475 gain: 11476 },1477 m3: {1478 loss: 1,1479 gain: 11480 },1481 m6: {1482 loss: 1,1483 gain: 11484 },1485 m12: {1486 loss: 1,1487 gain: 11488 },1489 m24: {1490 loss: 1,1491 gain: 11492 }1493 },1494 qld: {1495 m1: {1496 loss: 1,1497 gain: 11498 },1499 m3: {1500 loss: 1,1501 gain: 11502 },1503 m6: {1504 loss: 1,1505 gain: 11506 },1507 m12: {1508 loss: 1,1509 gain: 11510 },1511 m24: {1512 loss: 1,1513 gain: 11514 }1515 },1516 vic: {1517 m1: {1518 loss: 1,1519 gain: 11520 },1521 m3: {1522 loss: 1,1523 gain: 11524 },1525 m6: {1526 loss: 1,1527 gain: 11528 },1529 m12: {1530 loss: 1,1531 gain: 11532 },1533 m24: {1534 loss: 1,1535 gain: 11536 }1537 },1538 wa: {1539 m1: {1540 loss: 1,1541 gain: 11542 },1543 m3: {1544 loss: 1,1545 gain: 11546 },1547 m6: {1548 loss: 1,1549 gain: 11550 },1551 m12: {1552 loss: 1,1553 gain: 11554 },1555 m24: {1556 loss: 1,1557 gain: 11558 }1559 },1560 sa: {1561 m1: {1562 loss: 1,1563 gain: 11564 },1565 m3: {1566 loss: 1,1567 gain: 11568 },1569 m6: {1570 loss: 1,1571 gain: 11572 },1573 m12: {1574 loss: 1,1575 gain: 11576 },1577 m24: {1578 loss: 1,1579 gain: 11580 }1581 },1582 nt: {1583 m1: {1584 loss: 1,1585 gain: 11586 },1587 m3: {1588 loss: 1,1589 gain: 11590 },1591 m6: {1592 loss: 1,1593 gain: 11594 },1595 m12: {1596 loss: 1,1597 gain: 11598 },1599 m24: {1600 loss: 1,1601 gain: 11602 }1603 },1604 act: {1605 m1: {1606 loss: 1,1607 gain: 11608 },1609 m3: {1610 loss: 1,1611 gain: 11612 },1613 m6: {1614 loss: 1,1615 gain: 11616 },1617 m12: {1618 loss: 1,1619 gain: 11620 },1621 m24: {1622 loss: 1,1623 gain: 11624 }1625 },1626 tas: {1627 m1: {1628 loss: 1,1629 gain: 11630 },1631 m3: {1632 loss: 1,1633 gain: 11634 },1635 m6: {1636 loss: 1,1637 gain: 11638 },1639 m12: {1640 loss: 1,1641 gain: 11642 },1643 m24: {1644 loss: 1,1645 gain: 11646 }1647 }1648 }1649 },1650 {1651 id: 9,1652 name: "Fortinum",1653 logo: "images/logo_9.png",1654 total: 256,1655 movement: {1656 all: {1657 m1: {1658 loss: 1,1659 gain: 11660 },1661 m3: {1662 loss: 1,1663 gain: 11664 },1665 m6: {1666 loss: 1,1667 gain: 11668 },1669 m12: {1670 loss: 1,1671 gain: 11672 },1673 m24: {1674 loss: 1,1675 gain: 11676 }1677 },1678 nsw: {1679 m1: {1680 loss: 1,1681 gain: 11682 },1683 m3: {1684 loss: 1,1685 gain: 11686 },1687 m6: {1688 loss: 1,1689 gain: 11690 },1691 m12: {1692 loss: 1,1693 gain: 11694 },1695 m24: {1696 loss: 1,1697 gain: 11698 }1699 },1700 qld: {1701 m1: {1702 loss: 1,1703 gain: 11704 },1705 m3: {1706 loss: 1,1707 gain: 11708 },1709 m6: {1710 loss: 1,1711 gain: 11712 },1713 m12: {1714 loss: 1,1715 gain: 11716 },1717 m24: {1718 loss: 1,1719 gain: 11720 }1721 },1722 vic: {1723 m1: {1724 loss: 1,1725 gain: 11726 },1727 m3: {1728 loss: 1,1729 gain: 11730 },1731 m6: {1732 loss: 1,1733 gain: 11734 },1735 m12: {1736 loss: 1,1737 gain: 11738 },1739 m24: {1740 loss: 1,1741 gain: 11742 }1743 },1744 wa: {1745 m1: {1746 loss: 1,1747 gain: 11748 },1749 m3: {1750 loss: 1,1751 gain: 11752 },1753 m6: {1754 loss: 1,1755 gain: 11756 },1757 m12: {1758 loss: 1,1759 gain: 11760 },1761 m24: {1762 loss: 1,1763 gain: 11764 }1765 },1766 sa: {1767 m1: {1768 loss: 1,1769 gain: 11770 },1771 m3: {1772 loss: 1,1773 gain: 11774 },1775 m6: {1776 loss: 1,1777 gain: 11778 },1779 m12: {1780 loss: 1,1781 gain: 11782 },1783 m24: {1784 loss: 1,1785 gain: 11786 }1787 },1788 nt: {1789 m1: {1790 loss: 1,1791 gain: 11792 },1793 m3: {1794 loss: 1,1795 gain: 11796 },1797 m6: {1798 loss: 1,1799 gain: 11800 },1801 m12: {1802 loss: 1,1803 gain: 11804 },1805 m24: {1806 loss: 1,1807 gain: 11808 }1809 },1810 act: {1811 m1: {1812 loss: 1,1813 gain: 11814 },1815 m3: {1816 loss: 1,1817 gain: 11818 },1819 m6: {1820 loss: 1,1821 gain: 11822 },1823 m12: {1824 loss: 1,1825 gain: 11826 },1827 m24: {1828 loss: 1,1829 gain: 11830 }1831 },1832 tas: {1833 m1: {1834 loss: 1,1835 gain: 11836 },1837 m3: {1838 loss: 1,1839 gain: 11840 },1841 m6: {1842 loss: 1,1843 gain: 11844 },1845 m12: {1846 loss: 1,1847 gain: 11848 },1849 m24: {1850 loss: 1,1851 gain: 11852 }1853 }1854 }1855 },1856 {1857 id: 10,1858 name: "Clearview",1859 logo: "images/logo_10.jpg",1860 total: 256,1861 movement: {1862 all: {1863 m1: {1864 loss: 1,1865 gain: 11866 },1867 m3: {1868 loss: 1,1869 gain: 11870 },1871 m6: {1872 loss: 1,1873 gain: 11874 },1875 m12: {1876 loss: 1,1877 gain: 11878 },1879 m24: {1880 loss: 1,1881 gain: 11882 }1883 },1884 nsw: {1885 m1: {1886 loss: 1,1887 gain: 11888 },1889 m3: {1890 loss: 1,1891 gain: 11892 },1893 m6: {1894 loss: 1,1895 gain: 11896 },1897 m12: {1898 loss: 1,1899 gain: 11900 },1901 m24: {1902 loss: 1,1903 gain: 11904 }1905 },1906 qld: {1907 m1: {1908 loss: 1,1909 gain: 11910 },1911 m3: {1912 loss: 1,1913 gain: 11914 },1915 m6: {1916 loss: 1,1917 gain: 11918 },1919 m12: {1920 loss: 1,1921 gain: 11922 },1923 m24: {1924 loss: 1,1925 gain: 11926 }1927 },1928 vic: {1929 m1: {1930 loss: 1,1931 gain: 11932 },1933 m3: {1934 loss: 1,1935 gain: 11936 },1937 m6: {1938 loss: 1,1939 gain: 11940 },1941 m12: {1942 loss: 1,1943 gain: 11944 },1945 m24: {1946 loss: 1,1947 gain: 11948 }1949 },1950 wa: {1951 m1: {1952 loss: 1,1953 gain: 11954 },1955 m3: {1956 loss: 1,1957 gain: 11958 },1959 m6: {1960 loss: 1,1961 gain: 11962 },1963 m12: {1964 loss: 1,1965 gain: 11966 },1967 m24: {1968 loss: 1,1969 gain: 11970 }1971 },1972 sa: {1973 m1: {1974 loss: 1,1975 gain: 11976 },1977 m3: {1978 loss: 1,1979 gain: 11980 },1981 m6: {1982 loss: 1,1983 gain: 11984 },1985 m12: {1986 loss: 1,1987 gain: 11988 },1989 m24: {1990 loss: 1,1991 gain: 11992 }1993 },1994 nt: {1995 m1: {1996 loss: 1,1997 gain: 11998 },1999 m3: {2000 loss: 1,2001 gain: 12002 },2003 m6: {2004 loss: 1,2005 gain: 12006 },2007 m12: {2008 loss: 1,2009 gain: 12010 },2011 m24: {2012 loss: 1,2013 gain: 12014 }2015 },2016 act: {2017 m1: {2018 loss: 1,2019 gain: 12020 },2021 m3: {2022 loss: 1,2023 gain: 12024 },2025 m6: {2026 loss: 1,2027 gain: 12028 },2029 m12: {2030 loss: 1,2031 gain: 12032 },2033 m24: {2034 loss: 1,2035 gain: 12036 }2037 },2038 tas: {2039 m1: {2040 loss: 1,2041 gain: 12042 },2043 m3: {2044 loss: 1,2045 gain: 12046 },2047 m6: {2048 loss: 1,2049 gain: 12050 },2051 m12: {2052 loss: 1,2053 gain: 12054 },2055 m24: {2056 loss: 1,2057 gain: 12058 }2059 }2060 }2061 },2062 {2063 id: 11,2064 name: "Infocus",2065 logo: "images/logo_11.png",2066 total: 256,2067 movement: {2068 all: {2069 m1: {2070 loss: 1,2071 gain: 12072 },2073 m3: {2074 loss: 1,2075 gain: 12076 },2077 m6: {2078 loss: 1,2079 gain: 12080 },2081 m12: {2082 loss: 1,2083 gain: 12084 },2085 m24: {2086 loss: 1,2087 gain: 12088 }2089 },2090 nsw: {2091 m1: {2092 loss: 1,2093 gain: 12094 },2095 m3: {2096 loss: 1,2097 gain: 12098 },2099 m6: {2100 loss: 1,2101 gain: 12102 },2103 m12: {2104 loss: 1,2105 gain: 12106 },2107 m24: {2108 loss: 1,2109 gain: 12110 }2111 },2112 qld: {2113 m1: {2114 loss: 1,2115 gain: 12116 },2117 m3: {2118 loss: 1,2119 gain: 12120 },2121 m6: {2122 loss: 1,2123 gain: 12124 },2125 m12: {2126 loss: 1,2127 gain: 12128 },2129 m24: {2130 loss: 1,2131 gain: 12132 }2133 },2134 vic: {2135 m1: {2136 loss: 1,2137 gain: 12138 },2139 m3: {2140 loss: 1,2141 gain: 12142 },2143 m6: {2144 loss: 1,2145 gain: 12146 },2147 m12: {2148 loss: 1,2149 gain: 12150 },2151 m24: {2152 loss: 1,2153 gain: 12154 }2155 },2156 wa: {2157 m1: {2158 loss: 1,2159 gain: 12160 },2161 m3: {2162 loss: 1,2163 gain: 12164 },2165 m6: {2166 loss: 1,2167 gain: 12168 },2169 m12: {2170 loss: 1,2171 gain: 12172 },2173 m24: {2174 loss: 1,2175 gain: 12176 }2177 },2178 sa: {2179 m1: {2180 loss: 1,2181 gain: 12182 },2183 m3: {2184 loss: 1,2185 gain: 12186 },2187 m6: {2188 loss: 1,2189 gain: 12190 },2191 m12: {2192 loss: 1,2193 gain: 12194 },2195 m24: {2196 loss: 1,2197 gain: 12198 }2199 },2200 nt: {2201 m1: {2202 loss: 1,2203 gain: 12204 },2205 m3: {2206 loss: 1,2207 gain: 12208 },2209 m6: {2210 loss: 1,2211 gain: 12212 },2213 m12: {2214 loss: 1,2215 gain: 12216 },2217 m24: {2218 loss: 1,2219 gain: 12220 }2221 },2222 act: {2223 m1: {2224 loss: 1,2225 gain: 12226 },2227 m3: {2228 loss: 1,2229 gain: 12230 },2231 m6: {2232 loss: 1,2233 gain: 12234 },2235 m12: {2236 loss: 1,2237 gain: 12238 },2239 m24: {2240 loss: 1,2241 gain: 12242 }2243 },2244 tas: {2245 m1: {2246 loss: 1,2247 gain: 12248 },2249 m3: {2250 loss: 1,2251 gain: 12252 },2253 m6: {2254 loss: 1,2255 gain: 12256 },2257 m12: {2258 loss: 1,2259 gain: 12260 },2261 m24: {2262 loss: 1,2263 gain: 12264 }2265 }2266 }2267 },2268 {2269 id: 12,2270 name: "Consultum",2271 logo: "images/logo_12.png",2272 total: 256,2273 movement: {2274 all: {2275 m1: {2276 loss: 1,2277 gain: 12278 },2279 m3: {2280 loss: 1,2281 gain: 12282 },2283 m6: {2284 loss: 1,2285 gain: 12286 },2287 m12: {2288 loss: 1,2289 gain: 12290 },2291 m24: {2292 loss: 1,2293 gain: 12294 }2295 },2296 nsw: {2297 m1: {2298 loss: 1,2299 gain: 12300 },2301 m3: {2302 loss: 1,2303 gain: 12304 },2305 m6: {2306 loss: 1,2307 gain: 12308 },2309 m12: {2310 loss: 1,2311 gain: 12312 },2313 m24: {2314 loss: 1,2315 gain: 12316 }2317 },2318 qld: {2319 m1: {2320 loss: 1,2321 gain: 12322 },2323 m3: {2324 loss: 1,2325 gain: 12326 },2327 m6: {2328 loss: 1,2329 gain: 12330 },2331 m12: {2332 loss: 1,2333 gain: 12334 },2335 m24: {2336 loss: 1,2337 gain: 12338 }2339 },2340 vic: {2341 m1: {2342 loss: 1,2343 gain: 12344 },2345 m3: {2346 loss: 1,2347 gain: 12348 },2349 m6: {2350 loss: 1,2351 gain: 12352 },2353 m12: {2354 loss: 1,2355 gain: 12356 },2357 m24: {2358 loss: 1,2359 gain: 12360 }2361 },2362 wa: {2363 m1: {2364 loss: 1,2365 gain: 12366 },2367 m3: {2368 loss: 1,2369 gain: 12370 },2371 m6: {2372 loss: 1,2373 gain: 12374 },2375 m12: {2376 loss: 1,2377 gain: 12378 },2379 m24: {2380 loss: 1,2381 gain: 12382 }2383 },2384 sa: {2385 m1: {2386 loss: 1,2387 gain: 12388 },2389 m3: {2390 loss: 1,2391 gain: 12392 },2393 m6: {2394 loss: 1,2395 gain: 12396 },2397 m12: {2398 loss: 1,2399 gain: 12400 },2401 m24: {2402 loss: 1,2403 gain: 12404 }2405 },2406 nt: {2407 m1: {2408 loss: 1,2409 gain: 12410 },2411 m3: {2412 loss: 1,2413 gain: 12414 },2415 m6: {2416 loss: 1,2417 gain: 12418 },2419 m12: {2420 loss: 1,2421 gain: 12422 },2423 m24: {2424 loss: 1,2425 gain: 12426 }2427 },2428 act: {2429 m1: {2430 loss: 1,2431 gain: 12432 },2433 m3: {2434 loss: 1,2435 gain: 12436 },2437 m6: {2438 loss: 1,2439 gain: 12440 },2441 m12: {2442 loss: 1,2443 gain: 12444 },2445 m24: {2446 loss: 1,2447 gain: 12448 }2449 },2450 tas: {2451 m1: {2452 loss: 1,2453 gain: 12454 },2455 m3: {2456 loss: 1,2457 gain: 12458 },2459 m6: {2460 loss: 1,2461 gain: 12462 },2463 m12: {2464 loss: 1,2465 gain: 12466 },2467 m24: {2468 loss: 1,2469 gain: 12470 }2471 }2472 }2473 },2474 {2475 id: 13,2476 name: "Hillross",2477 logo: "images/logo_13.png",2478 total: 256,2479 movement: {2480 all: {2481 m1: {2482 loss: 1,2483 gain: 12484 },2485 m3: {2486 loss: 1,2487 gain: 12488 },2489 m6: {2490 loss: 1,2491 gain: 12492 },2493 m12: {2494 loss: 1,2495 gain: 12496 },2497 m24: {2498 loss: 1,2499 gain: 12500 }2501 },2502 nsw: {2503 m1: {2504 loss: 1,2505 gain: 12506 },2507 m3: {2508 loss: 1,2509 gain: 12510 },2511 m6: {2512 loss: 1,2513 gain: 12514 },2515 m12: {2516 loss: 1,2517 gain: 12518 },2519 m24: {2520 loss: 1,2521 gain: 12522 }2523 },2524 qld: {2525 m1: {2526 loss: 1,2527 gain: 12528 },2529 m3: {2530 loss: 1,2531 gain: 12532 },2533 m6: {2534 loss: 1,2535 gain: 12536 },2537 m12: {2538 loss: 1,2539 gain: 12540 },2541 m24: {2542 loss: 1,2543 gain: 12544 }2545 },2546 vic: {2547 m1: {2548 loss: 1,2549 gain: 12550 },2551 m3: {2552 loss: 1,2553 gain: 12554 },2555 m6: {2556 loss: 1,2557 gain: 12558 },2559 m12: {2560 loss: 1,2561 gain: 12562 },2563 m24: {2564 loss: 1,2565 gain: 12566 }2567 },2568 wa: {2569 m1: {2570 loss: 1,2571 gain: 12572 },2573 m3: {2574 loss: 1,2575 gain: 12576 },2577 m6: {2578 loss: 1,2579 gain: 12580 },2581 m12: {2582 loss: 1,2583 gain: 12584 },2585 m24: {2586 loss: 1,2587 gain: 12588 }2589 },2590 sa: {2591 m1: {2592 loss: 1,2593 gain: 12594 },2595 m3: {2596 loss: 1,2597 gain: 12598 },2599 m6: {2600 loss: 1,2601 gain: 12602 },2603 m12: {2604 loss: 1,2605 gain: 12606 },2607 m24: {2608 loss: 1,2609 gain: 12610 }2611 },2612 nt: {2613 m1: {2614 loss: 1,2615 gain: 12616 },2617 m3: {2618 loss: 1,2619 gain: 12620 },2621 m6: {2622 loss: 1,2623 gain: 12624 },2625 m12: {2626 loss: 1,2627 gain: 12628 },2629 m24: {2630 loss: 1,2631 gain: 12632 }2633 },2634 act: {2635 m1: {2636 loss: 1,2637 gain: 12638 },2639 m3: {2640 loss: 1,2641 gain: 12642 },2643 m6: {2644 loss: 1,2645 gain: 12646 },2647 m12: {2648 loss: 1,2649 gain: 12650 },2651 m24: {2652 loss: 1,2653 gain: 12654 }2655 },2656 tas: {2657 m1: {2658 loss: 1,2659 gain: 12660 },2661 m3: {2662 loss: 1,2663 gain: 12664 },2665 m6: {2666 loss: 1,2667 gain: 12668 },2669 m12: {2670 loss: 1,2671 gain: 12672 },2673 m24: {2674 loss: 1,2675 gain: 12676 }2677 }2678 }2679 },2680 {2681 id: 14,2682 name: "Morgans",2683 logo: "images/logo_14.png",2684 total: 256,2685 movement: {2686 all: {2687 m1: {2688 loss: 1,2689 gain: 12690 },2691 m3: {2692 loss: 1,2693 gain: 12694 },2695 m6: {2696 loss: 1,2697 gain: 12698 },2699 m12: {2700 loss: 1,2701 gain: 12702 },2703 m24: {2704 loss: 1,2705 gain: 12706 }2707 },2708 nsw: {2709 m1: {2710 loss: 1,2711 gain: 12712 },2713 m3: {2714 loss: 1,2715 gain: 12716 },2717 m6: {2718 loss: 1,2719 gain: 12720 },2721 m12: {2722 loss: 1,2723 gain: 12724 },2725 m24: {2726 loss: 1,2727 gain: 12728 }2729 },2730 qld: {2731 m1: {2732 loss: 1,2733 gain: 12734 },2735 m3: {2736 loss: 1,2737 gain: 12738 },2739 m6: {2740 loss: 1,2741 gain: 12742 },2743 m12: {2744 loss: 1,2745 gain: 12746 },2747 m24: {2748 loss: 1,2749 gain: 12750 }2751 },2752 vic: {2753 m1: {2754 loss: 1,2755 gain: 12756 },2757 m3: {2758 loss: 1,2759 gain: 12760 },2761 m6: {2762 loss: 1,2763 gain: 12764 },2765 m12: {2766 loss: 1,2767 gain: 12768 },2769 m24: {2770 loss: 1,2771 gain: 12772 }2773 },2774 wa: {2775 m1: {2776 loss: 1,2777 gain: 12778 },2779 m3: {2780 loss: 1,2781 gain: 12782 },2783 m6: {2784 loss: 1,2785 gain: 12786 },2787 m12: {2788 loss: 1,2789 gain: 12790 },2791 m24: {2792 loss: 1,2793 gain: 12794 }2795 },2796 sa: {2797 m1: {2798 loss: 1,2799 gain: 12800 },2801 m3: {2802 loss: 1,2803 gain: 12804 },2805 m6: {2806 loss: 1,2807 gain: 12808 },2809 m12: {2810 loss: 1,2811 gain: 12812 },2813 m24: {2814 loss: 1,2815 gain: 12816 }2817 },2818 nt: {2819 m1: {2820 loss: 1,2821 gain: 12822 },2823 m3: {2824 loss: 1,2825 gain: 12826 },2827 m6: {2828 loss: 1,2829 gain: 12830 },2831 m12: {2832 loss: 1,2833 gain: 12834 },2835 m24: {2836 loss: 1,2837 gain: 12838 }2839 },2840 act: {2841 m1: {2842 loss: 1,2843 gain: 12844 },2845 m3: {2846 loss: 1,2847 gain: 12848 },2849 m6: {2850 loss: 1,2851 gain: 12852 },2853 m12: {2854 loss: 1,2855 gain: 12856 },2857 m24: {2858 loss: 1,2859 gain: 12860 }2861 },2862 tas: {2863 m1: {2864 loss: 1,2865 gain: 12866 },2867 m3: {2868 loss: 1,2869 gain: 12870 },2871 m6: {2872 loss: 1,2873 gain: 12874 },2875 m12: {2876 loss: 1,2877 gain: 12878 },2879 m24: {2880 loss: 1,2881 gain: 12882 }2883 }2884 }2885 }...

Full Screen

Full Screen

Matrix3f.js

Source:Matrix3f.js Github

copy

Full Screen

1Clazz.declarePackage ("J.util");2Clazz.load (null, "J.util.Matrix3f", ["java.lang.ArrayIndexOutOfBoundsException", "J.util.Tuple3f"], function () {3c$ = Clazz.decorateAsClass (function () {4this.m00 = 0;5this.m01 = 0;6this.m02 = 0;7this.m10 = 0;8this.m11 = 0;9this.m12 = 0;10this.m20 = 0;11this.m21 = 0;12this.m22 = 0;13Clazz.instantialize (this, arguments);14}, J.util, "Matrix3f", null, java.io.Serializable);15Clazz.makeConstructor (c$, 16function () {17});18c$.newA = Clazz.defineMethod (c$, "newA", 19function (v) {20var m = new J.util.Matrix3f ();21m.setA (v);22return m;23}, "~A");24c$.newM = Clazz.defineMethod (c$, "newM", 25function (m1) {26var m = new J.util.Matrix3f ();27m.m00 = m1.m00;28m.m01 = m1.m01;29m.m02 = m1.m02;30m.m10 = m1.m10;31m.m11 = m1.m11;32m.m12 = m1.m12;33m.m20 = m1.m20;34m.m21 = m1.m21;35m.m22 = m1.m22;36return m;37}, "J.util.Matrix3f");38Clazz.overrideMethod (c$, "toString", 39function () {40return "[\n [" + this.m00 + "\t" + this.m01 + "\t" + this.m02 + "]" + "\n [" + this.m10 + "\t" + this.m11 + "\t" + this.m12 + "]" + "\n [" + this.m20 + "\t" + this.m21 + "\t" + this.m22 + "] ]";41});42Clazz.defineMethod (c$, "setIdentity", 43function () {44this.m00 = 1.0;45this.m01 = 0.0;46this.m02 = 0.0;47this.m10 = 0.0;48this.m11 = 1.0;49this.m12 = 0.0;50this.m20 = 0.0;51this.m21 = 0.0;52this.m22 = 1.0;53});54Clazz.defineMethod (c$, "setElement", 55function (row, column, value) {56if (row == 0) if (column == 0) this.m00 = value;57 else if (column == 1) this.m01 = value;58 else if (column == 2) this.m02 = value;59 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);60 else if (row == 1) if (column == 0) this.m10 = value;61 else if (column == 1) this.m11 = value;62 else if (column == 2) this.m12 = value;63 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);64 else if (row == 2) if (column == 0) this.m20 = value;65 else if (column == 1) this.m21 = value;66 else if (column == 2) this.m22 = value;67 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);68 else throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);69}, "~N,~N,~N");70Clazz.defineMethod (c$, "getElement", 71function (row, column) {72if (row == 0) if (column == 0) return this.m00;73 else if (column == 1) return this.m01;74 else if (column == 2) return this.m02;75 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);76 else if (row == 1) if (column == 0) return this.m10;77 else if (column == 1) return this.m11;78 else if (column == 2) return this.m12;79 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);80 else if (row == 2) if (column == 0) return this.m20;81 else if (column == 1) return this.m21;82 else if (column == 2) return this.m22;83 else throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);84 else throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);85}, "~N,~N");86Clazz.defineMethod (c$, "setRow", 87function (row, x, y, z) {88if (row == 0) {89this.m00 = x;90this.m01 = y;91this.m02 = z;92} else if (row == 1) {93this.m10 = x;94this.m11 = y;95this.m12 = z;96} else if (row == 2) {97this.m20 = x;98this.m21 = y;99this.m22 = z;100} else {101throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);102}}, "~N,~N,~N,~N");103Clazz.defineMethod (c$, "setRowV", 104function (row, v) {105if (row == 0) {106this.m00 = v.x;107this.m01 = v.y;108this.m02 = v.z;109} else if (row == 1) {110this.m10 = v.x;111this.m11 = v.y;112this.m12 = v.z;113} else if (row == 2) {114this.m20 = v.x;115this.m21 = v.y;116this.m22 = v.z;117} else {118throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);119}}, "~N,J.util.V3");120Clazz.defineMethod (c$, "getRow", 121function (row, v) {122if (row == 0) {123v[0] = this.m00;124v[1] = this.m01;125v[2] = this.m02;126} else if (row == 1) {127v[0] = this.m10;128v[1] = this.m11;129v[2] = this.m12;130} else if (row == 2) {131v[0] = this.m20;132v[1] = this.m21;133v[2] = this.m22;134} else {135throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);136}}, "~N,~A");137Clazz.defineMethod (c$, "setRowA", 138function (row, v) {139if (row == 0) {140this.m00 = v[0];141this.m01 = v[1];142this.m02 = v[2];143} else if (row == 1) {144this.m10 = v[0];145this.m11 = v[1];146this.m12 = v[2];147} else if (row == 2) {148this.m20 = v[0];149this.m21 = v[1];150this.m22 = v[2];151} else {152throw new ArrayIndexOutOfBoundsException ("row must be 0 to 2 and is " + row);153}}, "~N,~A");154Clazz.defineMethod (c$, "setColumn", 155function (column, x, y, z) {156if (column == 0) {157this.m00 = x;158this.m10 = y;159this.m20 = z;160} else if (column == 1) {161this.m01 = x;162this.m11 = y;163this.m21 = z;164} else if (column == 2) {165this.m02 = x;166this.m12 = y;167this.m22 = z;168} else {169throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);170}}, "~N,~N,~N,~N");171Clazz.defineMethod (c$, "setColumnV", 172function (column, v) {173if (column == 0) {174this.m00 = v.x;175this.m10 = v.y;176this.m20 = v.z;177} else if (column == 1) {178this.m01 = v.x;179this.m11 = v.y;180this.m21 = v.z;181} else if (column == 2) {182this.m02 = v.x;183this.m12 = v.y;184this.m22 = v.z;185} else {186throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);187}}, "~N,J.util.V3");188Clazz.defineMethod (c$, "setColumnA", 189function (column, v) {190if (column == 0) {191this.m00 = v[0];192this.m10 = v[1];193this.m20 = v[2];194} else if (column == 1) {195this.m01 = v[0];196this.m11 = v[1];197this.m21 = v[2];198} else if (column == 2) {199this.m02 = v[0];200this.m12 = v[1];201this.m22 = v[2];202} else {203throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);204}}, "~N,~A");205Clazz.defineMethod (c$, "getColumnV", 206function (column, v) {207if (column == 0) {208v.x = this.m00;209v.y = this.m10;210v.z = this.m20;211} else if (column == 1) {212v.x = this.m01;213v.y = this.m11;214v.z = this.m21;215} else if (column == 2) {216v.x = this.m02;217v.y = this.m12;218v.z = this.m22;219} else {220throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);221}}, "~N,J.util.V3");222Clazz.defineMethod (c$, "getColumn", 223function (column, v) {224if (column == 0) {225v[0] = this.m00;226v[1] = this.m10;227v[2] = this.m20;228} else if (column == 1) {229v[0] = this.m01;230v[1] = this.m11;231v[2] = this.m21;232} else if (column == 2) {233v[0] = this.m02;234v[1] = this.m12;235v[2] = this.m22;236} else {237throw new ArrayIndexOutOfBoundsException ("column must be 0 to 2 and is " + column);238}}, "~N,~A");239Clazz.defineMethod (c$, "add", 240function (m1) {241this.m00 += m1.m00;242this.m01 += m1.m01;243this.m02 += m1.m02;244this.m10 += m1.m10;245this.m11 += m1.m11;246this.m12 += m1.m12;247this.m20 += m1.m20;248this.m21 += m1.m21;249this.m22 += m1.m22;250}, "J.util.Matrix3f");251Clazz.defineMethod (c$, "sub", 252function (m1) {253this.m00 -= m1.m00;254this.m01 -= m1.m01;255this.m02 -= m1.m02;256this.m10 -= m1.m10;257this.m11 -= m1.m11;258this.m12 -= m1.m12;259this.m20 -= m1.m20;260this.m21 -= m1.m21;261this.m22 -= m1.m22;262}, "J.util.Matrix3f");263Clazz.defineMethod (c$, "transpose", 264function () {265var tmp = this.m01;266this.m01 = this.m10;267this.m10 = tmp;268tmp = this.m02;269this.m02 = this.m20;270this.m20 = tmp;271tmp = this.m12;272this.m12 = this.m21;273this.m21 = tmp;274});275Clazz.defineMethod (c$, "transposeM", 276function (m1) {277this.setM (m1);278this.transpose ();279}, "J.util.Matrix3f");280Clazz.defineMethod (c$, "setAA", 281function (a1) {282this.setFromAxisAngle (a1.x, a1.y, a1.z, a1.angle);283}, "J.util.AxisAngle4f");284Clazz.defineMethod (c$, "setFromAxisAngle", 285($fz = function (x, y, z, angle) {286var n = Math.sqrt (x * x + y * y + z * z);287n = 1 / n;288x *= n;289y *= n;290z *= n;291var c = Math.cos (angle);292var s = Math.sin (angle);293var omc = 1.0 - c;294this.m00 = (c + x * x * omc);295this.m11 = (c + y * y * omc);296this.m22 = (c + z * z * omc);297var tmp1 = x * y * omc;298var tmp2 = z * s;299this.m01 = (tmp1 - tmp2);300this.m10 = (tmp1 + tmp2);301tmp1 = x * z * omc;302tmp2 = y * s;303this.m02 = (tmp1 + tmp2);304this.m20 = (tmp1 - tmp2);305tmp1 = y * z * omc;306tmp2 = x * s;307this.m12 = (tmp1 - tmp2);308this.m21 = (tmp1 + tmp2);309}, $fz.isPrivate = true, $fz), "~N,~N,~N,~N");310Clazz.defineMethod (c$, "setM", 311function (m1) {312this.m00 = m1.m00;313this.m01 = m1.m01;314this.m02 = m1.m02;315this.m10 = m1.m10;316this.m11 = m1.m11;317this.m12 = m1.m12;318this.m20 = m1.m20;319this.m21 = m1.m21;320this.m22 = m1.m22;321}, "J.util.Matrix3f");322Clazz.defineMethod (c$, "setA", 323function (m) {324this.m00 = m[0];325this.m01 = m[1];326this.m02 = m[2];327this.m10 = m[3];328this.m11 = m[4];329this.m12 = m[5];330this.m20 = m[6];331this.m21 = m[7];332this.m22 = m[8];333}, "~A");334Clazz.defineMethod (c$, "invertM", 335function (m1) {336this.setM (m1);337this.invert ();338}, "J.util.Matrix3f");339Clazz.defineMethod (c$, "invert", 340function () {341var s = this.determinant ();342if (s == 0.0) return;343s = 1 / s;344this.set (this.m11 * this.m22 - this.m12 * this.m21, this.m02 * this.m21 - this.m01 * this.m22, this.m01 * this.m12 - this.m02 * this.m11, this.m12 * this.m20 - this.m10 * this.m22, this.m00 * this.m22 - this.m02 * this.m20, this.m02 * this.m10 - this.m00 * this.m12, this.m10 * this.m21 - this.m11 * this.m20, this.m01 * this.m20 - this.m00 * this.m21, this.m00 * this.m11 - this.m01 * this.m10);345this.mulf (s);346});347Clazz.defineMethod (c$, "determinant", 348function () {349return this.m00 * (this.m11 * this.m22 - this.m21 * this.m12) - this.m01 * (this.m10 * this.m22 - this.m20 * this.m12) + this.m02 * (this.m10 * this.m21 - this.m20 * this.m11);350});351Clazz.defineMethod (c$, "setScale", 352function (scale) {353this.m00 = scale;354this.m01 = 0.0;355this.m02 = 0.0;356this.m10 = 0.0;357this.m11 = scale;358this.m12 = 0.0;359this.m20 = 0.0;360this.m21 = 0.0;361this.m22 = scale;362}, "~N");363Clazz.defineMethod (c$, "rotX", 364function (angle) {365var c = Math.cos (angle);366var s = Math.sin (angle);367this.m00 = 1.0;368this.m01 = 0.0;369this.m02 = 0.0;370this.m10 = 0.0;371this.m11 = c;372this.m12 = -s;373this.m20 = 0.0;374this.m21 = s;375this.m22 = c;376}, "~N");377Clazz.defineMethod (c$, "rotY", 378function (angle) {379var c = Math.cos (angle);380var s = Math.sin (angle);381this.m00 = c;382this.m01 = 0.0;383this.m02 = s;384this.m10 = 0.0;385this.m11 = 1.0;386this.m12 = 0.0;387this.m20 = -s;388this.m21 = 0.0;389this.m22 = c;390}, "~N");391Clazz.defineMethod (c$, "rotZ", 392function (angle) {393var c = Math.cos (angle);394var s = Math.sin (angle);395this.m00 = c;396this.m01 = -s;397this.m02 = 0.0;398this.m10 = s;399this.m11 = c;400this.m12 = 0.0;401this.m20 = 0.0;402this.m21 = 0.0;403this.m22 = 1.0;404}, "~N");405Clazz.defineMethod (c$, "mulf", 406function (scalar) {407this.m00 *= scalar;408this.m01 *= scalar;409this.m02 *= scalar;410this.m10 *= scalar;411this.m11 *= scalar;412this.m12 *= scalar;413this.m20 *= scalar;414this.m21 *= scalar;415this.m22 *= scalar;416}, "~N");417Clazz.defineMethod (c$, "mul", 418function (m1) {419this.mul2 (this, m1);420}, "J.util.Matrix3f");421Clazz.defineMethod (c$, "mul2", 422function (m1, m2) {423this.set (m1.m00 * m2.m00 + m1.m01 * m2.m10 + m1.m02 * m2.m20, m1.m00 * m2.m01 + m1.m01 * m2.m11 + m1.m02 * m2.m21, m1.m00 * m2.m02 + m1.m01 * m2.m12 + m1.m02 * m2.m22, m1.m10 * m2.m00 + m1.m11 * m2.m10 + m1.m12 * m2.m20, m1.m10 * m2.m01 + m1.m11 * m2.m11 + m1.m12 * m2.m21, m1.m10 * m2.m02 + m1.m11 * m2.m12 + m1.m12 * m2.m22, m1.m20 * m2.m00 + m1.m21 * m2.m10 + m1.m22 * m2.m20, m1.m20 * m2.m01 + m1.m21 * m2.m11 + m1.m22 * m2.m21, m1.m20 * m2.m02 + m1.m21 * m2.m12 + m1.m22 * m2.m22);424}, "J.util.Matrix3f,J.util.Matrix3f");425Clazz.overrideMethod (c$, "equals", 426function (o) {427if (!(Clazz.instanceOf (o, J.util.Matrix3f))) return false;428var m = o;429return this.m00 == m.m00 && this.m01 == m.m01 && this.m02 == m.m02 && this.m10 == m.m10 && this.m11 == m.m11 && this.m12 == m.m12 && this.m20 == m.m20 && this.m21 == m.m21 && this.m22 == m.m22;430}, "~O");431Clazz.overrideMethod (c$, "hashCode", 432function () {433return J.util.Tuple3f.floatToIntBits0 (this.m00) ^ J.util.Tuple3f.floatToIntBits0 (this.m01) ^ J.util.Tuple3f.floatToIntBits0 (this.m02) ^ J.util.Tuple3f.floatToIntBits0 (this.m10) ^ J.util.Tuple3f.floatToIntBits0 (this.m11) ^ J.util.Tuple3f.floatToIntBits0 (this.m12) ^ J.util.Tuple3f.floatToIntBits0 (this.m20) ^ J.util.Tuple3f.floatToIntBits0 (this.m21) ^ J.util.Tuple3f.floatToIntBits0 (this.m22);434});435Clazz.defineMethod (c$, "setZero", 436function () {437this.m00 = 0.0;438this.m01 = 0.0;439this.m02 = 0.0;440this.m10 = 0.0;441this.m11 = 0.0;442this.m12 = 0.0;443this.m20 = 0.0;444this.m21 = 0.0;445this.m22 = 0.0;446});447Clazz.defineMethod (c$, "transform", 448function (t) {449this.transform2 (t, t);450}, "J.util.Tuple3f");451Clazz.defineMethod (c$, "transform2", 452function (t, result) {453result.set (this.m00 * t.x + this.m01 * t.y + this.m02 * t.z, this.m10 * t.x + this.m11 * t.y + this.m12 * t.z, this.m20 * t.x + this.m21 * t.y + this.m22 * t.z);454}, "J.util.Tuple3f,J.util.Tuple3f");455Clazz.defineMethod (c$, "set", 456($fz = function (m00, m01, m02, m10, m11, m12, m20, m21, m22) {457this.m00 = m00;458this.m01 = m01;459this.m02 = m02;460this.m10 = m10;461this.m11 = m11;462this.m12 = m12;463this.m20 = m20;464this.m21 = m21;465this.m22 = m22;466}, $fz.isPrivate = true, $fz), "~N,~N,~N,~N,~N,~N,~N,~N,~N"); ...

Full Screen

Full Screen

Transform2D.js

Source:Transform2D.js Github

copy

Full Screen

1Elm.Native.Transform2D = {};2Elm.Native.Transform2D.make = function(localRuntime) {3 localRuntime.Native = localRuntime.Native || {};4 localRuntime.Native.Transform2D = localRuntime.Native.Transform2D || {};5 if (localRuntime.Native.Transform2D.values)6 {7 return localRuntime.Native.Transform2D.values;8 }9 var A;10 if (typeof Float32Array === 'undefined')11 {12 A = function(arr)13 {14 this.length = arr.length;15 this[0] = arr[0];16 this[1] = arr[1];17 this[2] = arr[2];18 this[3] = arr[3];19 this[4] = arr[4];20 this[5] = arr[5];21 };22 }23 else24 {25 A = Float32Array;26 }27 // layout of matrix in an array is28 //29 // | m11 m12 dx |30 // | m21 m22 dy |31 // | 0 0 1 |32 //33 // new A([ m11, m12, dx, m21, m22, dy ])34 var identity = new A([1, 0, 0, 0, 1, 0]);35 function matrix(m11, m12, m21, m22, dx, dy)36 {37 return new A([m11, m12, dx, m21, m22, dy]);38 }39 function rotation(t)40 {41 var c = Math.cos(t);42 var s = Math.sin(t);43 return new A([c, -s, 0, s, c, 0]);44 }45 function rotate(t, m)46 {47 var c = Math.cos(t);48 var s = Math.sin(t);49 var m11 = m[0], m12 = m[1], m21 = m[3], m22 = m[4];50 return new A([m11 * c + m12 * s, -m11 * s + m12 * c, m[2],51 m21 * c + m22 * s, -m21 * s + m22 * c, m[5]]);52 }53 /*54 function move(xy,m) {55 var x = xy._0;56 var y = xy._1;57 var m11 = m[0], m12 = m[1], m21 = m[3], m22 = m[4];58 return new A([m11, m12, m11*x + m12*y + m[2],59 m21, m22, m21*x + m22*y + m[5]]);60 }61 function scale(s,m) { return new A([m[0]*s, m[1]*s, m[2], m[3]*s, m[4]*s, m[5]]); }62 function scaleX(x,m) { return new A([m[0]*x, m[1], m[2], m[3]*x, m[4], m[5]]); }63 function scaleY(y,m) { return new A([m[0], m[1]*y, m[2], m[3], m[4]*y, m[5]]); }64 function reflectX(m) { return new A([-m[0], m[1], m[2], -m[3], m[4], m[5]]); }65 function reflectY(m) { return new A([m[0], -m[1], m[2], m[3], -m[4], m[5]]); }66 function transform(m11, m21, m12, m22, mdx, mdy, n) {67 var n11 = n[0], n12 = n[1], n21 = n[3], n22 = n[4], ndx = n[2], ndy = n[5];68 return new A([m11*n11 + m12*n21,69 m11*n12 + m12*n22,70 m11*ndx + m12*ndy + mdx,71 m21*n11 + m22*n21,72 m21*n12 + m22*n22,73 m21*ndx + m22*ndy + mdy]);74 }75 */76 function multiply(m, n)77 {78 var m11 = m[0], m12 = m[1], m21 = m[3], m22 = m[4], mdx = m[2], mdy = m[5];79 var n11 = n[0], n12 = n[1], n21 = n[3], n22 = n[4], ndx = n[2], ndy = n[5];80 return new A([m11 * n11 + m12 * n21,81 m11 * n12 + m12 * n22,82 m11 * ndx + m12 * ndy + mdx,83 m21 * n11 + m22 * n21,84 m21 * n12 + m22 * n22,85 m21 * ndx + m22 * ndy + mdy]);86 }87 return localRuntime.Native.Transform2D.values = {88 identity: identity,89 matrix: F6(matrix),90 rotation: rotation,91 multiply: F2(multiply)92 /*93 transform: F7(transform),94 rotate: F2(rotate),95 move: F2(move),96 scale: F2(scale),97 scaleX: F2(scaleX),98 scaleY: F2(scaleY),99 reflectX: reflectX,100 reflectY: reflectY101 */102 };...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2wpt.m12();3wpt.m13();4var wpt = require('wpt');5wpt.m13();6var wpt = require('wpt');7wpt.m14();8var wpt = require('wpt');9wpt.m15();10var wpt = require('wpt');11wpt.m16();12var wpt = require('wpt');13wpt.m17();14var wpt = require('wpt');15wpt.m18();16var wpt = require('wpt');17wpt.m19();18var wpt = require('wpt');19wpt.m20();20var wpt = require('wpt');21wpt.m21();22var wpt = require('wpt');23wpt.m22();24var wpt = require('wpt');25wpt.m23();26var wpt = require('wpt');27wpt.m24();28var wpt = require('wpt');29wpt.m25();30var wpt = require('wpt');31wpt.m26();

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2wpt.m12(function(data) {3 console.log(data);4});5var wpt = require('wpt');6wpt.m12(function(data) {7 console.log(data);8});9var wpt = require('wpt');10wpt.m12(function(data) {11 console.log(data);12});13var wpt = require('wpt');14wpt.m12(function(data) {15 console.log(data);16});17var wpt = require('wpt');18wpt.m12(function(data) {19 console.log(data);20});21var wpt = require('wpt');22wpt.m12(function(data) {23 console.log(data);24});25var wpt = require('wpt');26wpt.m12(function(data) {27 console.log(data);28});29var wpt = require('wpt');30wpt.m12(function(data) {31 console.log(data);32});33var wpt = require('wpt');34wpt.m12(function(data) {35 console.log(data);36});37var wpt = require('wpt');38wpt.m12(function(data) {39 console.log(data);40});41var wpt = require('wpt');42wpt.m12(function(data) {43 console.log(data);44});45var wpt = require('wpt');46wpt.m12(function(data) {47 console.log(data);48});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2wpt.m12(function(err, data) {3 console.log(data);4});5var wpt = require('wpt');6wpt.m12(function(err, data) {7 console.log(data);8});9var wpt = require('wpt');10wpt.m12(function(err, data) {11 console.log(data);12});13var wpt = require('wpt');14wpt.m12(function(err, data) {15 console.log(data);16});17var wpt = require('wpt');18wpt.m12(function(err, data) {19 console.log(data);20});21var wpt = require('wpt');22wpt.m12(function(err, data) {23 console.log(data);24});25var wpt = require('wpt');26wpt.m12(function(err, data) {27 console.log(data);28});29var wpt = require('wpt');30wpt.m12(function(err, data) {31 console.log(data);32});33var wpt = require('wpt');34wpt.m12(function(err, data) {35 console.log(data);36});37var wpt = require('wpt');38wpt.m12(function(err, data) {39 console.log(data);40});41var wpt = require('wpt');42wpt.m12(function(err, data) {43 console.log(data);44});45var wpt = require('wpt');46wpt.m12(function(err, data) {47 console.log(data);

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org');3 if (err) {4 console.log(err);5 } else {6 console.log(data);7 wpt.getTestResults(data.data.testId, function(err, data) {8 if (err) {9 console.log(err);10 } else {11 console.log(data);12 }13 });14 }15});16var wpt = require('wpt');17var wpt = new WebPageTest('www.webpagetest.org');18 if (err) {19 console.log(err);20 } else {21 console.log(data);22 wpt.getTestResults(data.data.testId, function(err, data) {23 if (err) {24 console.log(err);25 } else {26 console.log(data);27 }28 });29 }30});31var wpt = require('wpt');32var wpt = new WebPageTest('www.webpagetest.org');33 if (err) {34 console.log(err);35 } else {36 console.log(data);37 wpt.getTestResults(data.data.testId, function(err, data) {38 if (err) {39 console.log(err);40 } else {41 console.log(data);42 }43 });44 }45});46var wpt = require('wpt');47var wpt = new WebPageTest('www.webpagetest.org');48 if (err) {49 console.log(err);50 } else {51 console.log(data);

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./wpt');2wpt.m12();3module.exports = {4 m12: function () {5 console.log('m12');6 }7};8exports.m12 = function () {9 console.log('m12');10};11var wpt = require('./wpt');12wpt.m12();13exports.m12 = function () {14 console.log('m12');15};16var wpt = require('./wpt');17wpt.m12();18module.exports = {19 m12: function () {20 console.log('m12');21 }22};23var wpt = require('./wpt');24wpt.m12();25exports.m12 = function () {26 console.log('m12');27};28var wpt = require('./wpt');29wpt.m12();30module.exports = {31 m12: function () {32 console.log('m12');33 }34};35var wpt = require('./wpt');36wpt.m12();37exports.m12 = function () {38 console.log('m12');39};

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./wpt');2wpt.m12();3module.exports.m12 = function() {4 console.log('m12');5}6module.exports.m12 = function() {7 console.log('m12');8}9var wpt = require('./wpt');10wpt.m12();11setTimeout(function() {12 var wpt = require('./wpt');13 wpt.m12();14}, 0);

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptest = require('wptest');2wptest.m12();3module.exports = {4 m12: function() {5 console.log('m12 called');6 }7};

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2wpt.m12('www.google.com', function(err, data) {3 console.log(data);4});5{ statusCode: 200,6 { responseCode: 200,7 { firstView:8 { loadTime: 312,9 rumSpeedIndex: 0 },10 { loadTime: 253,11 rumSpeedIndex: 0 } },12 { firstView:13 { loadTime: 0,14 rumSpeedIndex: 0 },15 { loadTime: 0,

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful