-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolyconvert.coffee
3047 lines (2498 loc) · 223 KB
/
polyconvert.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
### Angle Conversions ###
convertAngle =
degree: {}
gradian: {}
milliradian: {}
radian: {}
arcSecond: {}
arcMinute: {}
### Degree Conversions ###
convertAngle.degree.degree = deg$deg = (deg) -> deg # Degree to Degree
convertAngle.degree.gradian = deg$gad = (deg) -> deg * (200 / 180) # Degree to Gradian
convertAngle.degree.milliradian = deg$mrad = (deg) -> deg * ((1000 * Math.PI) / 180) # Degree to Milliradian
convertAngle.degree.radian = deg$rad = (deg) -> deg * (Math.PI / 180) # Degree to Radian
convertAngle.degree.arcSecond = deg$soa = (deg) -> deg * 3600 # Degree to Second of Arc
convertAngle.degree.arcMinute = deg$moa = (deg) -> deg * 60 # Degree to Minute of Arc
### Gradian Conversions ###
convertAngle.gradian.degree = gad$deg = (gad) -> gad * (180 / 200) # Gradian to Degree
convertAngle.gradian.gradian = gad$gad = (gad) -> gad # Gradian to Gradian
convertAngle.gradian.milliradian = gad$mrad = (gad) -> gad * ((1000 * Math.PI) / 200) # Gradian to Milliradian
convertAngle.gradian.radian = gad$rad = (gad) -> gad * (Math.PI / 200) # Gradian to Radian
convertAngle.gradian.arcSecond = gad$soa = (gad) -> gad * 3240 # Gradian to Second of Arc
convertAngle.gradian.arcMinute = gad$moa = (gad) -> gad * 54 # Gradian to Minute of Arc
### Milliradian Conversions ###
convertAngle.milliradian.degree = mrad$deg = (mrad) -> mrad * (180 / (1000 * Math.PI)) # Milliradian to Degree
convertAngle.milliradian.gradian = mrad$gad = (mrad) -> mrad * (200 / (1000 * Math.PI)) # Milliradian to Gradian
convertAngle.milliradian.milliradian = mrad$mrad = (mrad) -> mrad # Milliradian to Milliradian
convertAngle.milliradian.radian = mrad$rad = (mrad) -> mrad / 1000 # Milliradian to Radian
convertAngle.milliradian.arcSecond = mrad$soa = (mrad) -> mrad * ((180 * 3600) / (1000 * Math.PI)) # Milliradian to Second of Arc
convertAngle.milliradian.arcMinute = mrad$moa = (mrad) -> mrad * ((180 * 60) / (1000 * Math.PI)) # Milliradian to Minute of Arc
### Radian Conversions ###
convertAngle.radian.degree = rad$deg = (rad) -> rad * (180 / Math.PI) # Radian to Degree
convertAngle.radian.gradian = rad$gad = (rad) -> rad * (200 / Math.PI) # Radian to Gradian
convertAngle.radian.milliradian = rad$mrad = (rad) -> rad * 1000 # Radian to Milliradian
convertAngle.radian.radian = rad$rad = (rad) -> rad # Radian to Radian
convertAngle.radian.arcSecond = rad$soa = (rad) -> rad * ((180 * 3600) / Math.PI) # Radian to Second of Arc
convertAngle.radian.arcMinute = rad$moa = (rad) -> rad * ((180 * 60) / Math.PI) # Radian to Minute of Arc
### Second of Arc Conversions ###
convertAngle.arcSecond.degree = soa$deg = (soa) -> soa / 3600 # Second of Arc to Degree
convertAngle.arcSecond.gradian = soa$gad = (soa) -> soa / 3240 # Second of Arc to Gradian
convertAngle.arcSecond.milliradian = soa$mrad = (soa) -> soa * ((1000 * Math.PI) / (180 * 3600)) # Second of Arc to Milliradian
convertAngle.arcSecond.radian = soa$rad = (soa) -> soa * (Math.PI / (180 * 3600)) # Second of Arc to Radian
convertAngle.arcSecond.arcSecond = soa$soa = (soa) -> soa # Second of Arc to Second of Arc
convertAngle.arcSecond.arcMinute = soa$moa = (soa) -> soa / 60 # Second of Arc to Minute of Arc
### Minute of Arc Conversions ###
convertAngle.arcMinute.degree = moa$deg = (moa) -> moa / 60 # Minute of Arc to Degree
convertAngle.arcMinute.gradian = moa$gad = (moa) -> moa / 54 # Minute of Arc to Gradian
convertAngle.arcMinute.milliradian = moa$mrad = (moa) -> moa * ((1000 * Math.PI) / (180 * 60)) # Minute of Arc to Milliradian
convertAngle.arcMinute.radian = moa$rad = (moa) -> moa * (Math.PI / (180 * 60)) # Minute of Arc to Radian
convertAngle.arcMinute.arcSecond = moa$soa = (moa) -> moa * 60 # Minute of Arc to Second of Arc
convertAngle.arcMinute.arcMinute = moa$moa = (moa) -> moa # Minute of Arc to Minute of Arc
### Area Conversions ###
convertArea =
nanometerSq: {}
micrometerSq: {}
millimeterSq: {}
centimeterSq: {}
decimeterSq: {}
meterSq: {}
decameterSq: {}
hectometerSq: {}
kilometerSq: {}
inchSq: {}
footSq: {}
yardSq: {}
mileSq: {}
acre: {}
hectare: {}
### Nanometer Squared Conversions ###
convertArea.nanometerSq.nanometerSq = nmSq$nmSq = (nmSq) -> nmSq # Nanometer Squared to Nanometer Squared
convertArea.nanometerSq.micrometerSq = nmSq$umSq = (nmSq) -> nmSq / 1e+6 # Nanometer Squared to Micrometer Squared
convertArea.nanometerSq.millimeterSq = nmSq$mmSq = (nmSq) -> nmSq / 1e+12 # Nanometer Squared to Millimeter Squared
convertArea.nanometerSq.centimeterSq = nmSq$cmSq = (nmSq) -> nmSq / 1e+14 # Nanometer Squared to Centimeter Squared
convertArea.nanometerSq.decimeterSq = nmSq$dmSq = (nmSq) -> nmSq / 1e+16 # Nanometer Squared to Decimeter Squared
convertArea.nanometerSq.meterSq = nmSq$mSq = (nmSq) -> nmSq / 1e+18 # Nanometer Squared to Meter Squared
convertArea.nanometerSq.decameterSq = nmSq$damSq = (nmSq) -> nmSq / 1e+20 # Nanometer Squared to Decameter Squared
convertArea.nanometerSq.hectometerSq = nmSq$hmSq = (nmSq) -> nmSq / 1e+22 # Nanometer Squared to Hectometer Squared
convertArea.nanometerSq.kilometerSq = nmSq$kmSq = (nmSq) -> nmSq / 1e+24 # Nanometer Squared to Kilometer Squared
convertArea.nanometerSq.inchSq = nmSq$inchSq = (nmSq) -> nmSq / 64516e+10 # Nanometer Squared to Inch Squared
convertArea.nanometerSq.footSq = nmSq$footSq = (nmSq) -> nmSq / 9290304e+10 # Nanometer Squared to Foot Squared
convertArea.nanometerSq.yardSq = nmSq$yardSq = (nmSq) -> nmSq / 83612736e+10 # Nanometer Squared to Yard Squared
convertArea.nanometerSq.mileSq = nmSq$mileSq = (nmSq) -> nmSq / 25899881103e+14 # Nanometer Squared to Mile Squared
convertArea.nanometerSq.acre = nmSq$ac = (nmSq) -> nmSq / 40468564224e+11 # Nanometer Squared to Acre
convertArea.nanometerSq.hectare = nmSq$ha = (nmSq) -> nmSq / 1e+22 # Nanometer Squared to Hectare
### Micrometer Squared Conversions ###
convertArea.micrometerSq.nanometerSq = umSq$nmSq = (umSq) -> umSq * 1e+6 # Micrometer Squared to Nanometer Squared
convertArea.micrometerSq.micrometerSq = umSq$umSq = (umSq) -> umSq # Micrometer Squared to Micrometer Squared
convertArea.micrometerSq.millimeterSq = umSq$mmSq = (umSq) -> umSq / 1e+6 # Micrometer Squared to Millimeter Squared
convertArea.micrometerSq.centimeterSq = umSq$cmSq = (umSq) -> umSq / 1e+8 # Micrometer Squared to Centimeter Squared
convertArea.micrometerSq.decimeterSq = umSq$dmSq = (umSq) -> umSq / 1e+10 # Micrometer Squared to Decimeter Squared
convertArea.micrometerSq.meterSq = umSq$mSq = (umSq) -> umSq / 1e+12 # Micrometer Squared to Meter Squared
convertArea.micrometerSq.decameterSq = umSq$damSq = (umSq) -> umSq / 1e+14 # Micrometer Squared to Decameter Squared
convertArea.micrometerSq.hectometerSq = umSq$hmSq = (umSq) -> umSq / 1e+16 # Micrometer Squared to Hectometer Squared
convertArea.micrometerSq.kilometerSq = umSq$kmSq = (umSq) -> umSq / 1e+18 # Micrometer Squared to Kilometer Squared
convertArea.micrometerSq.inchSq = umSq$inchSq = (umSq) -> umSq / 64516e+4 # Micrometer Squared to Inch Squared
convertArea.micrometerSq.footSq = umSq$footSq = (umSq) -> umSq / 9290304e+4 # Micrometer Squared to Foot Squared
convertArea.micrometerSq.yardSq = umSq$yardSq = (umSq) -> umSq / 83612736e+4 # Micrometer Squared to Yard Squared
convertArea.micrometerSq.mileSq = umSq$mileSq = (umSq) -> umSq / 25899881103e+8 # Micrometer Squared to Mile Squared
convertArea.micrometerSq.acre = umSq$ac = (umSq) -> umSq / 40468564224e+5 # Micrometer Squared to Acre
convertArea.micrometerSq.hectare = umSq$ha = (umSq) -> umSq / 1e+16 # Micrometer Squared to Hectare
### Millimeter Squared Conversions ###
convertArea.millimeterSq.nanometerSq = mmSq$nmSq = (mmSq) -> mmSq * 1e+12 # Millimeter Squared to Nanometer Squared
convertArea.millimeterSq.micrometerSq = mmSq$umSq = (mmSq) -> mmSq * 1e+6 # Millimeter Squared to Micrometer Squared
convertArea.millimeterSq.millimeterSq = mmSq$mmSq = (mmSq) -> mmSq # Millimeter Squared to Millimeter Squared
convertArea.millimeterSq.centimeterSq = mmSq$cmSq = (mmSq) -> mmSq / 1e+2 # Millimeter to Squared Centimeter Squared
convertArea.millimeterSq.decimeterSq = mmSq$dmSq = (mmSq) -> mmSq / 1e+4 # Millimeter Squared to Decimeter Squared
convertArea.millimeterSq.meterSq = mmSq$mSq = (mmSq) -> mmSq / 1e+6 # Millimeter Squared to Meter Squared
convertArea.millimeterSq.decameterSq = mmSq$damSq = (mmSq) -> mmSq / 1e+8 # Millimeter Squared to Decameter Squared
convertArea.millimeterSq.hectometerSq = mmSq$hmSq = (mmSq) -> mmSq / 1e+10 # Millimeter Squared to Hectometer Squared
convertArea.millimeterSq.kilometerSq = mmSq$kmSq = (mmSq) -> mmSq / 1e+12 # Millimeter Squared to Kilometer Squared
convertArea.millimeterSq.inchSq = mmSq$inchSq = (mmSq) -> mmSq / 645.16 # Millimeter Squared to Inch Squared
convertArea.millimeterSq.footSq = mmSq$footSq = (mmSq) -> mmSq / 92903.04 # Millimeter Squared to Foot Squared
convertArea.millimeterSq.yardSq = mmSq$yardSq = (mmSq) -> mmSq / 836127.36 # Millimeter Squared to Yard Squared
convertArea.millimeterSq.mileSq = mmSq$mileSq = (mmSq) -> mmSq / 25899881103e+2 # Millimeter Squared to Mile Squared
convertArea.millimeterSq.acre = mmSq$ac = (mmSq) -> mmSq / 4046856422.4 # Millimeter Squared to Acre
convertArea.millimeterSq.hectare = mmSq$ha = (mmSq) -> mmSq / 1e+10 # Millimeter Squared to Hectare
### Centimeter Squared Conversions ###
convertArea.centimeterSq.nanometerSq = cmSq$nmSq = (cmSq) -> cmSq * 1e+14 # Centimeter Squared to Nanometer Squared
convertArea.centimeterSq.micrometerSq = cmSq$umSq = (cmSq) -> cmSq * 1e+8 # Centimeter Squared to Micrometer Squared
convertArea.centimeterSq.millimeterSq = cmSq$mmSq = (cmSq) -> cmSq * 1e+2 # Centimeter Squared to Millimeter Squared
convertArea.centimeterSq.centimeterSq = cmSq$cmSq = (cmSq) -> cmSq # Centimeter Squared to Centimeter Squared
convertArea.centimeterSq.decimeterSq = cmSq$dmSq = (cmSq) -> cmSq / 1e+2 # Centimeter Squared to Decimeter Squared
convertArea.centimeterSq.meterSq = cmSq$mSq = (cmSq) -> cmSq / 1e+4 # Centimeter Squared to Meter Squared
convertArea.centimeterSq.decameterSq = cmSq$damSq = (cmSq) -> cmSq / 1e+6 # Centimeter Squared to Decameter Squared
convertArea.centimeterSq.hectometerSq = cmSq$hmSq = (cmSq) -> cmSq / 1e+8 # Centimeter Squared to Hectometer Squared
convertArea.centimeterSq.kilometerSq = cmSq$kmSq = (cmSq) -> cmSq / 1e+10 # Centimeter Squared to Kilometer Squared
convertArea.centimeterSq.inchSq = cmSq$inchSq = (cmSq) -> cmSq / 6.4516 # Centimeter Squared to Inch Squared
convertArea.centimeterSq.footSq = cmSq$footSq = (cmSq) -> cmSq / 929.0304 # Centimeter Squared to Foot Squared
convertArea.centimeterSq.yardSq = cmSq$yardSq = (cmSq) -> cmSq / 8361.2736 # Centimeter Squared to Yard Squared
convertArea.centimeterSq.mileSq = cmSq$mileSq = (cmSq) -> cmSq / 25899881103 # Centimeter Squared to Mile Squared
convertArea.centimeterSq.acre = cmSq$ac = (cmSq) -> cmSq / 40468564.224 # Centimeter Squared to Acre
convertArea.centimeterSq.hectare = cmSq$ha = (cmSq) -> cmSq / 1e+8 # Centimeter Squared to Hectare
### Decimeter Squared Conversions ###
convertArea.decimeterSq.nanometerSq = dmSq$nmSq = (dmSq) -> dmSq * 1e+16 # Decimeter Squared to Nanometer Squared
convertArea.decimeterSq.micrometerSq = dmSq$umSq = (dmSq) -> dmSq * 1e+10 # Decimeter Squared to Micrometer Squared
convertArea.decimeterSq.millimeterSq = dmSq$mmSq = (dmSq) -> dmSq * 1e+4 # Decimeter Squared to Millimeter Squared
convertArea.decimeterSq.centimeterSq = dmSq$cmSq = (dmSq) -> dmSq * 1e+2 # Decimeter Squared to Centimeter Squared
convertArea.decimeterSq.decimeterSq = dmSq$dmSq = (dmSq) -> dmSq # Decimeter Squared to Decimeter Squared
convertArea.decimeterSq.meterSq = dmSq$mSq = (dmSq) -> dmSq / 1e+2 # Decimeter Squared to Meter Squared
convertArea.decimeterSq.decameterSq = dmSq$damSq = (dmSq) -> dmSq / 1e+4 # Decimeter Squared to Decameter Squared
convertArea.decimeterSq.hectometerSq = dmSq$hmSq = (dmSq) -> dmSq / 1e+6 # Decimeter Squared to Hectometer Squared
convertArea.decimeterSq.kilometerSq = dmSq$kmSq = (dmSq) -> dmSq / 1e+8 # Decimeter Squared to Kilometer Squared
convertArea.decimeterSq.inchSq = dmSq$inchSq = (dmSq) -> dmSq * 15.500031 # Decimeter Squared to Inch Squared
convertArea.decimeterSq.footSq = dmSq$footSq = (dmSq) -> dmSq / 9.290304 # Decimeter Squared to Foot Squared
convertArea.decimeterSq.yardSq = dmSq$yardSq = (dmSq) -> dmSq / 83.612736 # Decimeter Squared to Yard Squared
convertArea.decimeterSq.mileSq = dmSq$mileSq = (dmSq) -> dmSq / 258998811.03 # Decimeter Squared to Mile Squared
convertArea.decimeterSq.acre = dmSq$ac = (dmSq) -> dmSq / 404685.64224 # Decimeter Squared to Acre
convertArea.decimeterSq.hectare = dmSq$ha = (dmSq) -> dmSq / 1e+6 # Decimeter Squared to Hectare
### Meter Squared Conversions ###
convertArea.meterSq.nanometerSq = mSq$nmSq = (mSq) -> mSq * 1e+18 # Meter Squared to Nanometer Squared
convertArea.meterSq.micrometerSq = mSq$umSq = (mSq) -> mSq * 1e+12 # Meter Squared to Micrometer Squared
convertArea.meterSq.millimeterSq = mSq$mmSq = (mSq) -> mSq * 1e+6 # Meter Squared to Millimeter Squared
convertArea.meterSq.centimeterSq = mSq$cmSq = (mSq) -> mSq * 1e+4 # Meter Squared to Centimeter Squared
convertArea.meterSq.decimeterSq = mSq$dmSq = (mSq) -> mSq * 1e+2 # Meter Squared to Decimeter Squared
convertArea.meterSq.meterSq = mSq$mSq = (mSq) -> mSq # Meter Squared to Meter Squared
convertArea.meterSq.decameterSq = mSq$damSq = (mSq) -> mSq / 1e+2 # Meter Squared to Decameter Squared
convertArea.meterSq.hectometerSq = mSq$hmSq = (mSq) -> mSq / 1e+4 # Meter Squared to Hectometer Squared
convertArea.meterSq.kilometerSq = mSq$kmSq = (mSq) -> mSq / 1e+6 # Meter Squared to Kilometer Squared
convertArea.meterSq.inchSq = mSq$inchSq = (mSq) -> mSq * 1550.0031 # Meter Squared to Inch Squared
convertArea.meterSq.footSq = mSq$footSq = (mSq) -> mSq * 10.763910417 # Meter Squared to Foot Squared
convertArea.meterSq.yardSq = mSq$yardSq = (mSq) -> mSq * 1.1959900463 # Meter Squared to Yard Squared
convertArea.meterSq.mileSq = mSq$mileSq = (mSq) -> mSq / 2589988.1103 # Meter Squared to Mile Squared
convertArea.meterSq.acre = mSq$ac = (mSq) -> mSq / 4046.8564224 # Meter Squared to Acre
convertArea.meterSq.hectare = mSq$ha = (mSq) -> mSq / 1e+4 # Meter Squared to Hectare
### Decameter Squared Conversions ###
convertArea.decameterSq.nanometerSq = damSq$nmSq = (damSq) -> damSq * 1e+20 # Decameter Squared to Nanometer Squared
convertArea.decameterSq.micrometerSq = damSq$umSq = (damSq) -> damSq * 1e+14 # Decameter Squared to Micrometer Squared
convertArea.decameterSq.millimeterSq = damSq$mmSq = (damSq) -> damSq * 1e+8 # Decameter Squared to Millimeter Squared
convertArea.decameterSq.centimeterSq = damSq$cmSq = (damSq) -> damSq * 1e+6 # Decameter Squared to Centimeter Squared
convertArea.decameterSq.decimeterSq = damSq$dmSq = (damSq) -> damSq * 1e+4 # Decameter Squared to Decimeter Squared
convertArea.decameterSq.meterSq = damSq$mSq = (damSq) -> damSq * 1e+2 # Decameter Squared to Meter Squared
convertArea.decameterSq.decameterSq = damSq$damSq = (damSq) -> damSq # Decameter Squared to Decameter Squared
convertArea.decameterSq.hectometerSq = damSq$hmSq = (damSq) -> damSq / 1e+2 # Decameter Squared to Hectometer Squared
convertArea.decameterSq.kilometerSq = damSq$kmSq = (damSq) -> damSq / 1e+4 # Decameter Squared to Kilometer Squared
convertArea.decameterSq.inchSq = damSq$inchSq = (damSq) -> damSq * 155000.31 # Decameter Squared to Inch Squared
convertArea.decameterSq.footSq = damSq$footSq = (damSq) -> damSq * 1076.3910417 # Decameter Squared to Foot Squared
convertArea.decameterSq.yardSq = damSq$yardSq = (damSq) -> damSq * 119.59900463 # Decameter Squared to Yard Squared
convertArea.decameterSq.mileSq = damSq$mileSq = (damSq) -> damSq / 25899.881103 # Decameter Squared to Mile Squared
convertArea.decameterSq.acre = damSq$ac = (damSq) -> damSq / 40.468564224 # Decameter Squared to Acre
convertArea.decameterSq.hectare = damSq$ha = (damSq) -> damSq / 1e+2 # Decameter Squared to Hectare
### Hectometer Squared Conversions ###
convertArea.hectometerSq.nanometerSq = hmSq$nmSq = (hmSq) -> hmSq * 1e+22 # Hectometer Squared to Nanometer Squared
convertArea.hectometerSq.micrometerSq = hmSq$umSq = (hmSq) -> hmSq * 1e+16 # Hectometer Squared to Micrometer Squared
convertArea.hectometerSq.millimeterSq = hmSq$mmSq = (hmSq) -> hmSq * 1e+10 # Hectometer Squared to Millimeter Squared
convertArea.hectometerSq.centimeterSq = hmSq$cmSq = (hmSq) -> hmSq * 1e+8 # Hectometer Squared to Centimeter Squared
convertArea.hectometerSq.decimeterSq = hmSq$dmSq = (hmSq) -> hmSq * 1e+6 # Hectometer Squared to Decimeter Squared
convertArea.hectometerSq.meterSq = hmSq$mSq = (hmSq) -> hmSq * 1e+4 # Hectometer Squared to Meter Squared
convertArea.hectometerSq.decameterSq = hmSq$damSq = (hmSq) -> hmSq * 1e+2 # Hectometer Squared to Decameter Squared
convertArea.hectometerSq.hectometerSq = hmSq$hmSq = (hmSq) -> hmSq # Hectometer Squared to Hectometer Squared
convertArea.hectometerSq.kilometerSq = hmSq$kmSq = (hmSq) -> hmSq / 1e+2 # Hectometer Squared to Kilometer Squared
convertArea.hectometerSq.inchSq = hmSq$inchSq = (hmSq) -> hmSq * 15500031 # Hectometer Squared to Inch Squared
convertArea.hectometerSq.footSq = hmSq$footSq = (hmSq) -> hmSq * 107639.10417 # Hectometer Squared to Foot Squared
convertArea.hectometerSq.yardSq = hmSq$yardSq = (hmSq) -> hmSq * 11959.900463 # Hectometer Squared to Yard Squared
convertArea.hectometerSq.mileSq = hmSq$mileSq = (hmSq) -> hmSq / 258.99881103 # Hectometer Squared to Mile Squared
convertArea.hectometerSq.acre = hmSq$ac = (hmSq) -> hmSq * 2.4710538147 # Hectometer Squared to Acre
convertArea.hectometerSq.hectare = hmSq$ha = (hmSq) -> hmSq # Hectometer Squared to Hectare
### Kilometer Squared Conversions ###
convertArea.kilometerSq.nanometerSq = kmSq$nmSq = (kmSq) -> kmSq * 1e+24 # Kilometer Squared to Nanometer Squared
convertArea.kilometerSq.micrometerSq = kmSq$umSq = (kmSq) -> kmSq * 1e+18 # Kilometer Squared to Micrometer Squared
convertArea.kilometerSq.millimeterSq = kmSq$mmSq = (kmSq) -> kmSq * 1e+12 # Kilometer Squared to Millimeter Squared
convertArea.kilometerSq.centimeterSq = kmSq$cmSq = (kmSq) -> kmSq * 1e+10 # Kilometer Squared to Centimeter Squared
convertArea.kilometerSq.decimeterSq = kmSq$dmSq = (kmSq) -> kmSq * 1e+8 # Kilometer Squared to Decimeter Squared
convertArea.kilometerSq.meterSq = kmSq$mSq = (kmSq) -> kmSq * 1e+6 # Kilometer Squared to Meter Squared
convertArea.kilometerSq.decameterSq = kmSq$damSq = (kmSq) -> kmSq * 1e+4 # Kilometer Squared to Decameter Squared
convertArea.kilometerSq.hectometerSq = kmSq$hmSq = (kmSq) -> kmSq * 1e+2 # Kilometer Squared to Hectometer Squared
convertArea.kilometerSq.kilometerSq = kmSq$kmSq = (kmSq) -> kmSq # Kilometer Squared to Kilometer Squared
convertArea.kilometerSq.inchSq = kmSq$inchSq = (kmSq) -> kmSq * 15500031e+2 # Kilometer Squared to Inch Squared
convertArea.kilometerSq.footSq = kmSq$footSq = (kmSq) -> kmSq * 10763910.417 # Kilometer Squared to Foot Squared
convertArea.kilometerSq.yardSq = kmSq$yardSq = (kmSq) -> kmSq * 1195990.0463 # Kilometer Squared to Yard Squared
convertArea.kilometerSq.mileSq = kmSq$mileSq = (kmSq) -> kmSq / 2.5899881103 # Kilometer Squared to Mile Squared
convertArea.kilometerSq.acre = kmSq$ac = (kmSq) -> kmSq * 247.10538147 # Kilometer Squared to Acre
convertArea.kilometerSq.hectare = kmSq$ha = (kmSq) -> kmSq * 1e+2 # Kilometer Squared to Hectare
### Inch Squared Conversions ###
convertArea.inchSq.nanometerSq = inchSq$nmSq = (inchSq) -> inchSq * 64516e+10 # Inch Squared to Nanometer Squared
convertArea.inchSq.micrometerSq = inchSq$umSq = (inchSq) -> inchSq * 64516e+4 # Inch Squared to Micrometer Squared
convertArea.inchSq.millimeterSq = inchSq$mmSq = (inchSq) -> inchSq * 645.16 # Inch Squared to Millimeter Squared
convertArea.inchSq.centimeterSq = inchSq$cmSq = (inchSq) -> inchSq * 6.4516 # Inch Squared to Centimeter Squared
convertArea.inchSq.decimeterSq = inchSq$dmSq = (inchSq) -> inchSq / 15.500031 # Inch Squared to Decimeter Squared
convertArea.inchSq.meterSq = inchSq$mSq = (inchSq) -> inchSq / 1550.0031 # Inch Squared to Meter Squared
convertArea.inchSq.decameterSq = inchSq$damSq = (inchSq) -> inchSq / 155000.31 # Inch Squared to Decameter Squared
convertArea.inchSq.hectometerSq = inchSq$hmSq = (inchSq) -> inchSq / 15500031 # Inch Squared to Hectometer Squared
convertArea.inchSq.kilometerSq = inchSq$kmSq = (inchSq) -> inchSq / 15500031e+2 # Inch Squared to Kilometer Squared
convertArea.inchSq.inchSq = inchSq$inchSq = (inchSq) -> inchSq # Inch Squared to Inch Squared
convertArea.inchSq.footSq = inchSq$footSq = (inchSq) -> inchSq / 144 # Inch Squared to Foot Squared
convertArea.inchSq.yardSq = inchSq$yardSq = (inchSq) -> inchSq / 1296 # Inch Squared to Yard Squared
convertArea.inchSq.mileSq = inchSq$mileSq = (inchSq) -> inchSq / 40144896e+2 # Inch Squared to Mile Squared
convertArea.inchSq.acre = inchSq$ac = (inchSq) -> inchSq / 627264e+1 # Inch Squared to Acre
convertArea.inchSq.hectare = inchSq$ha = (inchSq) -> inchSq / 15500031 # Inch Squared to Hectare
### Foot Squared Conversions ###
convertArea.footSq.nanometerSq = footSq$nmSq = (footSq) -> footSq * 9290304e+10 # Foot Squared to Nanometer Squared
convertArea.footSq.micrometerSq = footSq$umSq = (footSq) -> footSq * 9290304e+4 # Foot Squared to Micrometer Squared
convertArea.footSq.millimeterSq = footSq$mmSq = (footSq) -> footSq * 92903.04 # Foot Squared to Millimeter Squared
convertArea.footSq.centimeterSq = footSq$cmSq = (footSq) -> footSq * 929.0304 # Foot Squared to Centimeter Squared
convertArea.footSq.decimeterSq = footSq$dmSq = (footSq) -> footSq * 9.290304 # Foot Squared to Decimeter Squared
convertArea.footSq.meterSq = footSq$mSq = (footSq) -> footSq / 10.763910417 # Foot Squared to Meter Squared
convertArea.footSq.decameterSq = footSq$damSq = (footSq) -> footSq / 1076.3910417 # Foot Squared to Decameter Squared
convertArea.footSq.hectometerSq = footSq$hmSq = (footSq) -> footSq / 107639.10417 # Foot Squared to Hectometer Squared
convertArea.footSq.kilometerSq = footSq$kmSq = (footSq) -> footSq / 10763910.417 # Foot Squared to Kilometer Squared
convertArea.footSq.inchSq = footSq$inchSq = (footSq) -> footSq * 144 # Foot Squared to Inch Squared
convertArea.footSq.footSq = footSq$footSq = (footSq) -> footSq # Foot Squared to Foot Squared
convertArea.footSq.yardSq = footSq$yardSq = (footSq) -> footSq / 9 # Foot Squared to Yard Squared
convertArea.footSq.mileSq = footSq$mileSq = (footSq) -> footSq / 278784e+2 # Foot Squared to Mile Squared
convertArea.footSq.acre = footSq$ac = (footSq) -> footSq / 4356e+1 # Foot Squared to Acre
convertArea.footSq.hectare = footSq$ha = (footSq) -> footSq / 107639.10417 # Foot Squared to Hectare
### Yard Squared Conversions ###
convertArea.yardSq.nanometerSq = yardSq$nmSq = (yardSq) -> yardSq * 83612736e+10 # Yard Squared to Nanometer Squared
convertArea.yardSq.micrometerSq = yardSq$umSq = (yardSq) -> yardSq * 83612736e+4 # Yard Squared to Micrometer Squared
convertArea.yardSq.millimeterSq = yardSq$mmSq = (yardSq) -> yardSq * 836127.36 # Yard Squared to Millimeter Squared
convertArea.yardSq.centimeterSq = yardSq$cmSq = (yardSq) -> yardSq * 8361.2736 # Yard Squared to Centimeter Squared
convertArea.yardSq.decimeterSq = yardSq$dmSq = (yardSq) -> yardSq * 83.612736 # Yard Squared to Decimeter Squared
convertArea.yardSq.meterSq = yardSq$mSq = (yardSq) -> yardSq / 1.1959900463 # Yard Squared to Meter Squared
convertArea.yardSq.decameterSq = yardSq$damSq = (yardSq) -> yardSq / 119.59900463 # Yard Squared to Decameter Squared
convertArea.yardSq.hectometerSq = yardSq$hmSq = (yardSq) -> yardSq / 11959.900463 # Yard Squared to Hectometer Squared
convertArea.yardSq.kilometerSq = yardSq$kmSq = (yardSq) -> yardSq / 1195990.0463 # Yard Squared to Kilometer Squared
convertArea.yardSq.inchSq = yardSq$inchSq = (yardSq) -> yardSq * 1296 # Yard Squared to Inch Squared
convertArea.yardSq.footSq = yardSq$footSq = (yardSq) -> yardSq * 9 # Yard Squared to Foot Squared
convertArea.yardSq.yardSq = yardSq$yardSq = (yardSq) -> yardSq # Yard Squared to Yard Squared
convertArea.yardSq.mileSq = yardSq$mileSq = (yardSq) -> yardSq / 30976e+2 # Yard Squared to Mile Squared
convertArea.yardSq.acre = yardSq$ac = (yardSq) -> yardSq / 484e+1 # Yard Squared to Acre
convertArea.yardSq.hectare = yardSq$ha = (yardSq) -> yardSq / 11959.900463 # Yard Squared to Hectare
### Mile Squared Conversions ###
convertArea.mileSq.nanometerSq = mileSq$nmSq = (mileSq) -> mileSq * 25899881103e+14 # Mile Squared to Nanometer Squared
convertArea.mileSq.micrometerSq = mileSq$umSq = (mileSq) -> mileSq * 25899881103e+8 # Mile Squared to Micrometer Squared
convertArea.mileSq.millimeterSq = mileSq$mmSq = (mileSq) -> mileSq * 25899881103e+2 # Mile Squared to Millimeter Squared
convertArea.mileSq.centimeterSq = mileSq$cmSq = (mileSq) -> mileSq * 25899881103 # Mile Squared to Centimeter Squared
convertArea.mileSq.decimeterSq = mileSq$dmSq = (mileSq) -> mileSq * 258998811.03 # Mile Squared to Decimeter Squared
convertArea.mileSq.meterSq = mileSq$mSq = (mileSq) -> mileSq * 2589988.1103 # Mile Squared to Meter Squared
convertArea.mileSq.decameterSq = mileSq$damSq = (mileSq) -> mileSq * 25899.881103 # Mile Squared to Decameter Squared
convertArea.mileSq.hectometerSq = mileSq$hmSq = (mileSq) -> mileSq * 258.99881103 # Mile Squared to Hectometer Squared
convertArea.mileSq.kilometerSq = mileSq$kmSq = (mileSq) -> mileSq * 2.5899881103 # Mile Squared to Kilometer Squared
convertArea.mileSq.inchSq = mileSq$inchSq = (mileSq) -> mileSq * 40144896e+2 # Mile Squared to Inch Squared
convertArea.mileSq.footSq = mileSq$footSq = (mileSq) -> mileSq * 278784e+2 # Mile Squared to Foot Squared
convertArea.mileSq.yardSq = mileSq$yardSq = (mileSq) -> mileSq * 30976e+2 # Mile Squared to Yard Squared
convertArea.mileSq.mileSq = mileSq$mileSq = (mileSq) -> mileSq # Mile Squared to Mile Squared
convertArea.mileSq.acre = mileSq$ac = (mileSq) -> mileSq * 640 # Mile Squared to Acre
convertArea.mileSq.hectare = mileSq$ha = (mileSq) -> mileSq * 258.99881103 # Mile Squared to Hectare
### Acre Conversions ###
convertArea.acre.nanometerSq = ac$nmSq = (ac) -> ac * 40468564224e+11 # Acre to Nanometer Squared
convertArea.acre.micrometerSq = ac$umSq = (ac) -> ac * 40468564224e+5 # Acre to Micrometer Squared
convertArea.acre.millimeterSq = ac$mmSq = (ac) -> ac * 4046856422.4 # Acre to Millimeter Squared
convertArea.acre.centimeterSq = ac$cmSq = (ac) -> ac * 40468564.224 # Acre to Centimeter Squared
convertArea.acre.decimeterSq = ac$dmSq = (ac) -> ac * 404685.64224 # Acre to Decimeter Squared
convertArea.acre.meterSq = ac$mSq = (ac) -> ac * 4046.8564224 # Acre to Meter Squared
convertArea.acre.decameterSq = ac$damSq = (ac) -> ac * 40.468564224 # Acre to Decameter Squared
convertArea.acre.hectometerSq = ac$hmSq = (ac) -> ac / 2.4710538147 # Acre to Hectometer Squared
convertArea.acre.kilometerSq = ac$kmSq = (ac) -> ac / 247.10538147 # Acre to Kilometer Squared
convertArea.acre.inchSq = ac$inchSq = (ac) -> ac * 627264e+1 # Acre to Inch Squared
convertArea.acre.footSq = ac$footSq = (ac) -> ac * 4356e+1 # Acre to Foot Squared
convertArea.acre.yardSq = ac$yardSq = (ac) -> ac * 484e+1 # Acre to Yard Squared
convertArea.acre.mileSq = ac$mileSq = (ac) -> ac / 640 # Acre to Mile Squared
convertArea.acre.acre = ac$ac = (ac) -> ac # Acre to Acre
convertArea.acre.hectare = ac$ha = (ac) -> ac / 2.4710538147 # Acre to Hectare
### Hectare Conversions ###
convertArea.hectare.nanometerSq = ha$nmSq = (ha) -> ha * 1e+22 # Hectare to Nanometer Squared
convertArea.hectare.micrometerSq = ha$umSq = (ha) -> ha * 1e+16 # Hectare to Micrometer Squared
convertArea.hectare.millimeterSq = ha$mmSq = (ha) -> ha * 1e+10 # Hectare to Millimeter Squared
convertArea.hectare.centimeterSq = ha$cmSq = (ha) -> ha * 1e+8 # Hectare to Centimeter Squared
convertArea.hectare.decimeterSq = ha$dmSq = (ha) -> ha * 1e+6 # Hectare to Decimeter Squared
convertArea.hectare.meterSq = ha$mSq = (ha) -> ha * 1e+4 # Hectare to Meter Squared
convertArea.hectare.decameterSq = ha$damSq = (ha) -> ha * 1e+2 # Hectare to Decameter Squared
convertArea.hectare.hectometerSq = ha$hmSq = (ha) -> ha # Hectare to Hectometer Squared
convertArea.hectare.kilometerSq = ha$kmSq = (ha) -> ha / 1e+2 # Hectare to Kilometer Squared
convertArea.hectare.inchSq = ha$inchSq = (ha) -> ha * 15500031 # Hectare to Inch Squared
convertArea.hectare.footSq = ha$footSq = (ha) -> ha * 107639.10417 # Hectare to Foot Squared
convertArea.hectare.yardSq = ha$yardSq = (ha) -> ha * 11959.900463 # Hectare to Yard Squared
convertArea.hectare.mileSq = ha$mileSq = (ha) -> ha / 258.99881103 # Hectare to Mile Squared
convertArea.hectare.acre = ha$ac = (ha) -> ha * 2.4710538147 # Hectare to Acre
convertArea.hectare.hectare = ha$ha = (ha) -> ha # Hectare to Hectare
### Data Conversions ###
convertData =
bit: {}
byte: {}
kilobyte: {}
megabyte: {}
gigabyte: {}
terrabyte: {}
petabyte: {}
exabyte: {}
zettabyte: {}
yottabyte: {}
### Bit Conversions ###
convertData.bit.bit = bit$bit = (bit) -> bit # Bit to Bit
convertData.bit.byte = bit$byte = (bit) -> bit / 8 # Bit to Byte
convertData.bit.kilobyte = bit$kb = (bit) -> bit / 8e+3 # Bit to Kilobyte
convertData.bit.megabyte = bit$mb = (bit) -> bit / 8e+6 # Bit to Megabyte
convertData.bit.gigabyte = bit$gb = (bit) -> bit / 8e+9 # Bit to Gigabyte
convertData.bit.terrabyte = bit$tb = (bit) -> bit / 8e+12 # Bit to Terrabyte
convertData.bit.petabyte = bit$pb = (bit) -> bit / 8e+15 # Bit to Petabyte
convertData.bit.exabyte = bit$eb = (bit) -> bit / 8e+18 # Bit to Exabyte
convertData.bit.zettabyte = bit$zb = (bit) -> bit / 8e+21 # Bit to Zettabyte
convertData.bit.yottabyte = bit$yb = (bit) -> bit / 8e+24 # Bit to Yottabyte
### Byte Conversions ###
convertData.byte.bit = byte$bit = (byte) -> byte * 8 # Byte to Bit
convertData.byte.byte = byte$byte = (byte) -> byte # Byte to Byte
convertData.byte.kilobyte = byte$kb = (byte) -> byte / 1e+3 # Byte to Kilobyte
convertData.byte.megabyte = byte$mb = (byte) -> byte / 1e+6 # Byte to Megabyte
convertData.byte.gigabyte = byte$gb = (byte) -> byte / 1e+9 # Byte to Gigabyte
convertData.byte.terrabyte = byte$tb = (byte) -> byte / 1e+12 # Byte to Terrabyte
convertData.byte.petabyte = byte$pb = (byte) -> byte / 1e+15 # Byte to Petabyte
convertData.byte.exabyte = byte$eb = (byte) -> byte / 1e+18 # Byte to Exabyte
convertData.byte.zettabyte = byte$zb = (byte) -> byte / 1e+21 # Byte to Zettabyte
convertData.byte.yottabyte = byte$yb = (byte) -> byte / 1e+24 # Byte to Yottabyte
### Kilobyte Conversions ###
convertData.kilobyte.bit = kb$bit = (kb) -> kb * 8e+3 # Kilobyte to Bit
convertData.kilobyte.byte = kb$byte = (kb) -> kb * 1e+3 # Kilobyte to Byte
convertData.kilobyte.kilobyte = kb$kb = (kb) -> kb # Kilobyte to Kilobyte
convertData.kilobyte.megabyte = kb$mb = (kb) -> kb / 1e+3 # Kilobyte to Megabyte
convertData.kilobyte.gigabyte = kb$gb = (kb) -> kb / 1e+6 # Kilobyte to Gigabyte
convertData.kilobyte.terrabyte = kb$tb = (kb) -> kb / 1e+9 # Kilobyte to Terrabyte
convertData.kilobyte.petabyte = kb$pb = (kb) -> kb / 1e+12 # Kilobyte to Petabyte
convertData.kilobyte.exabyte = kb$eb = (kb) -> kb / 1e+15 # Kilobyte to Exabyte
convertData.kilobyte.zettabyte = kb$zb = (kb) -> kb / 1e+18 # Kilobyte to Zettabyte
convertData.kilobyte.yottabyte = kb$yb = (kb) -> kb / 1e+21 # Kilobyte to Yottabyte
### Megabyte Conversions ###
convertData.megabyte.bit = mb$bit = (mb) -> mb * 8e+6 # Megabyte to Bit
convertData.megabyte.byte = mb$byte = (mb) -> mb * 1e+6 # Megabyte to Byte
convertData.megabyte.kilobyte = mb$kb = (mb) -> mb * 1e+3 # Megabyte to Kilobyte
convertData.megabyte.megabyte = mb$mb = (mb) -> mb # Megabyte to Megabyte
convertData.megabyte.gigabyte = mb$gb = (mb) -> mb / 1e+3 # Megabyte to Gigabyte
convertData.megabyte.terrabyte = mb$tb = (mb) -> mb / 1e+6 # Megabyte to Terrabyte
convertData.megabyte.petabyte = mb$pb = (mb) -> mb / 1e+9 # Megabyte to Petabyte
convertData.megabyte.exabyte = mb$eb = (mb) -> mb / 1e+12 # Megabyte to Exabyte
convertData.megabyte.zettabyte = mb$zb = (mb) -> mb / 1e+15 # Megabyte to Zettabyte
convertData.megabyte.yottabyte = mb$yb = (mb) -> mb / 1e+18 # Megabyte to Yottabyte
### Gigabyte Conversions ###
convertData.gigabyte.bit = gb$bit = (gb) -> gb * 8e+9 # Gigabyte to Bit
convertData.gigabyte.byte = gb$byte = (gb) -> gb * 1e+9 # Gigabyte to Byte
convertData.gigabyte.kilobyte = gb$kb = (gb) -> gb * 1e+6 # Gigabyte to Kilobyte
convertData.gigabyte.megabyte = gb$mb = (gb) -> gb * 1e+3 # Gigabyte to Megabyte
convertData.gigabyte.gigabyte = gb$gb = (gb) -> gb # Gigabyte to Gigabyte
convertData.gigabyte.terrabyte = gb$tb = (gb) -> gb / 1e+3 # Gigabyte to Terrabyte
convertData.gigabyte.petabyte = gb$pb = (gb) -> gb / 1e+6 # Gigabyte to Petabyte
convertData.gigabyte.exabyte = gb$eb = (gb) -> gb / 1e+9 # Gigabyte to Exabyte
convertData.gigabyte.zettabyte = gb$zb = (gb) -> gb / 1e+12 # Gigabyte to Zettabyte
convertData.gigabyte.yottabyte = gb$yb = (gb) -> gb / 1e+15 # Gigabyte to Yottabyte
### Terrabyte Conversions ###
convertData.terrabyte.bit = tb$bit = (tb) -> tb * 8e+12 # Terrabyte to Bit
convertData.terrabyte.byte = tb$byte = (tb) -> tb * 1e+12 # Terrabyte to Byte
convertData.terrabyte.kilobyte = tb$kb = (tb) -> tb * 1e+9 # Terrabyte to Kilobyte
convertData.terrabyte.megabyte = tb$mb = (tb) -> tb * 1e+6 # Terrabyte to Megabyte
convertData.terrabyte.gigabyte = tb$gb = (tb) -> tb * 1e+3 # Terrabyte to Gigabyte
convertData.terrabyte.terrabyte = tb$tb = (tb) -> tb # Terrabyte to Terrabyte
convertData.terrabyte.petabyte = tb$pb = (tb) -> tb / 1e+3 # Terrabyte to Petabyte
convertData.terrabyte.exabyte = tb$eb = (tb) -> tb / 1e+6 # Terrabyte to Exabyte
convertData.terrabyte.zettabyte = tb$zb = (tb) -> tb / 1e+9 # Terrabyte to Zettabyte
convertData.terrabyte.yottabyte = tb$yb = (tb) -> tb / 1e+12 # Terrabyte to Yottabyte
### Petabyte Conversions ###
convertData.petabyte.bit = pb$bit = (pb) -> pb * 8e+15 # Petabyte to Bit
convertData.petabyte.byte = pb$byte = (pb) -> pb * 1e+15 # Petabyte to Byte
convertData.petabyte.kilobyte = pb$kb = (pb) -> pb * 1e+12 # Petabyte to Kilobyte
convertData.petabyte.megabyte = pb$mb = (pb) -> pb * 1e+9 # Petabyte to Megabyte
convertData.petabyte.gigabyte = pb$gb = (pb) -> pb * 1e+6 # Petabyte to Gigabyte
convertData.petabyte.terrabyte = pb$tb = (pb) -> pb * 1e+3 # Petabyte to Terrabyte
convertData.petabyte.petabyte = pb$pb = (pb) -> pb # Petabyte to Petabyte
convertData.petabyte.exabyte = pb$eb = (pb) -> pb / 1e+3 # Petabyte to Exabyte
convertData.petabyte.zettabyte = pb$zb = (pb) -> pb / 1e+6 # Petabyte to Zettabyte
convertData.petabyte.yottabyte = pb$yb = (pb) -> pb / 1e+9 # Petabyte to Yottabyte
### Exabyte Conversions ###
convertData.exabyte.bit = eb$bit = (eb) -> eb * 8e+18 # Exabyte to Bit
convertData.exabyte.byte = eb$byte = (eb) -> eb * 1e+18 # Exabyte to Byte
convertData.exabyte.kilobyte = eb$kb = (eb) -> eb * 1e+15 # Exabyte to Kilobyte
convertData.exabyte.megabyte = eb$mb = (eb) -> eb * 1e+12 # Exabyte to Megabyte
convertData.exabyte.gigabyte = eb$gb = (eb) -> eb * 1e+9 # Exabyte to Gigabyte
convertData.exabyte.terrabyte = eb$tb = (eb) -> eb * 1e+6 # Exabyte to Terrabyte
convertData.exabyte.petabyte = eb$pb = (eb) -> eb * 1e+3 # Exabyte to Petabyte
convertData.exabyte.exabyte = eb$eb = (eb) -> eb # Exabyte to Exabyte
convertData.exabyte.zettabyte = eb$zb = (eb) -> eb / 1e+3 # Exabyte to Zettabyte
convertData.exabyte.yottabyte = eb$yb = (eb) -> eb / 1e+6 # Exabyte to Yottabyte
### Zettabyte Conversions ###
convertData.zettabyte.bit = zb$bit = (zb) -> zb * 8e+21 # Zettabyte to Bit
convertData.zettabyte.byte = zb$byte = (zb) -> zb * 1e+21 # Zettabyte to Byte
convertData.zettabyte.kilobyte = zb$kb = (zb) -> zb * 1e+18 # Zettabyte to Kilobyte
convertData.zettabyte.megabyte = zb$mb = (zb) -> zb * 1e+15 # Zettabyte to Megabyte
convertData.zettabyte.gigabyte = zb$gb = (zb) -> zb * 1e+12 # Zettabyte to Gigabyte
convertData.zettabyte.terrabyte = zb$tb = (zb) -> zb * 1e+9 # Zettabyte to Terrabyte
convertData.zettabyte.petabyte = zb$pb = (zb) -> zb * 1e+6 # Zettabyte to Petabyte
convertData.zettabyte.exabyte = zb$eb = (zb) -> zb * 1e+3 # Zettabyte to Exabyte
convertData.zettabyte.zettabyte = zb$zb = (zb) -> zb # Zettabyte to Zettabyte
convertData.zettabyte.yottabyte = zb$yb = (zb) -> zb / 1e+3 # Zettabyte to Yottabyte
### Yottabyte Conversions ###
convertData.yottabyte.bit = yb$bit = (yb) -> yb * 8e+24 # Yottabyte to Bit
convertData.yottabyte.byte = yb$byte = (yb) -> yb * 1e+24 # Yottabyte to Byte
convertData.yottabyte.kilobyte = yb$kb = (yb) -> yb * 1e+21 # Yottabyte to Kilobyte
convertData.yottabyte.megabyte = yb$mb = (yb) -> yb * 1e+18 # Yottabyte to Megabyte
convertData.yottabyte.gigabyte = yb$gb = (yb) -> yb * 1e+15 # Yottabyte to Gigabyte
convertData.yottabyte.terrabyte = yb$tb = (yb) -> yb * 1e+12 # Yottabyte to Terrabyte
convertData.yottabyte.petabyte = yb$pb = (yb) -> yb * 1e+9 # Yottabyte to Petabyte
convertData.yottabyte.exabyte = yb$eb = (yb) -> yb * 1e+6 # Yottabyte to Exabyte
convertData.yottabyte.zettabyte = yb$zb = (yb) -> yb * 1e+3 # Yottabyte to Zettabyte
convertData.yottabyte.yottabyte = yb$yb = (yb) -> yb # Yottabyte to Yottabyte
### Density Conversions ###
convertDensity =
gramCentimeterCu: {}
gramMeterCu: {}
kilogramCentimeterCu: {}
kilogramMeterCu: {}
ounceInchCu: {}
ounceFootCu: {}
poundInchCu: {}
poundFootCu: {}
### Gram per Centimeter Cubed Conversions ###
convertDensity.gramCentimeterCu.gramCentimeterCu = gCmCu$gCmCu = (gCmCu) -> gCmCu # Gram per Centimeter Cubed to Gram per Centimeter Cubed
convertDensity.gramCentimeterCu.gramMeterCu = gCmCu$gMCu = (gCmCu) -> gCmCu * 1e+6 # Gram per Centimeter Cubed to Gram per Meter Cubed
convertDensity.gramCentimeterCu.kilogramCentimeterCu = gCmCu$kgCmCu = (gCmCu) -> gCmCu / 1e+3 # Gram per Centimeter Cubed to Kilogram per Centimeter Cubed
convertDensity.gramCentimeterCu.kilogramMeterCu = gCmCu$kgMCu = (gCmCu) -> gCmCu * 1e+3 # Gram per Centimeter Cubed to Kilogram per Meter Cubed
convertDensity.gramCentimeterCu.ounceInchCu = gCmCu$ozInchCu = (gCmCu) -> gCmCu / 1.73 # Gram per Centimeter Cubed to Ounce per Inch Cubed
convertDensity.gramCentimeterCu.ounceFootCu = gCmCu$ozFootCu = (gCmCu) -> gCmCu * 998.8 # Gram per Centimeter Cubed to Ounce per Foot Cubed
convertDensity.gramCentimeterCu.poundInchCu = gCmCu$lbInchCu = (gCmCu) -> gCmCu / 27.68 # Gram per Centimeter Cubed to Pound per Inch Cubed
convertDensity.gramCentimeterCu.poundFootCu = gCmCu$lbFootCu = (gCmCu) -> gCmCu * 62.43 # Gram per Centimeter Cubed to Pound per Foot Cubed
### Gram per Meter Cubed Conversions ###
convertDensity.gramMeterCu.gramCentimeterCu = gMCu$gCmCu = (gMCu) -> gMCu / 1e+6 # Gram per Meter Cubed to Gram per Centimeter Cubed
convertDensity.gramMeterCu.gramMeterCu = gMCu$gMCu = (gMCu) -> gMCu # Gram per Meter Cubed to Gram per Meter Cubed
convertDensity.gramMeterCu.kilogramCentimeterCu = gMCu$kgCmCu = (gMCu) -> gMCu / 1e+9 # Gram per Meter Cubed to Kilogram per Centimeter Cubed
convertDensity.gramMeterCu.kilogramMeterCu = gMCu$kgMCu = (gMCu) -> gMCu / 1e+3 # Gram per Meter Cubed to Kilogram per Meter Cubed
convertDensity.gramMeterCu.ounceInchCu = gMCu$ozInchCu = (gMCu) -> gMCu / 173e+4 # Gram per Meter Cubed to Ounce per Inch Cubed
convertDensity.gramMeterCu.ounceFootCu = gMCu$ozFootCu = (gMCu) -> gMCu / 1001 # Gram per Meter Cubed to Ounce per Foot Cubed
convertDensity.gramMeterCu.poundInchCu = gMCu$lbInchCu = (gMCu) -> gMCu / 2768e+4 # Gram per Meter Cubed to Pound per Inch Cubed
convertDensity.gramMeterCu.poundFootCu = gMCu$lbFootCu = (gMCu) -> gMCu / 1602e+1 # Gram per Meter Cubed to Pound per Foot Cubed
### Kilogram per Centimeter Cubed Conversions ###
convertDensity.kilogramCentimeterCu.gramCentimeterCu = kgCmCu$gCmCu = (kgCmCu) -> kgCmCu * 1e+3 # Kilogram per Centimeter Cubed to Gram per Centimeter Cubed
convertDensity.kilogramCentimeterCu.gramMeterCu = kgCmCu$gMCu = (kgCmCu) -> kgCmCu * 1e+9 # Kilogram per Centimeter Cubed to Gram per Meter Cubed
convertDensity.kilogramCentimeterCu.kilogramCentimeterCu = kgCmCu$kgCmCu = (kgCmCu) -> kgCmCu # Kilogram per Centimeter Cubed to Kilogram per Centimeter Cubed
convertDensity.kilogramCentimeterCu.kilogramMeterCu = kgCmCu$kgMCu = (kgCmCu) -> kgCmCu * 1e+6 # Kilogram per Centimeter Cubed to Kilogram per Meter Cubed
convertDensity.kilogramCentimeterCu.ounceInchCu = kgCmCu$ozInchCu = (kgCmCu) -> kgCmCu * 578 # Kilogram per Centimeter Cubed to Ounce per Inch Cubed
convertDensity.kilogramCentimeterCu.ounceFootCu = kgCmCu$ozFootCu = (kgCmCu) -> kgCmCu * 9988e+2 # Kilogram per Centimeter Cubed to Ounce per Foot Cubed
convertDensity.kilogramCentimeterCu.poundInchCu = kgCmCu$lbInchCu = (kgCmCu) -> kgCmCu * 36.13 # Kilogram per Centimeter Cubed to Pound per Inch Cubed
convertDensity.kilogramCentimeterCu.poundFootCu = kgCmCu$lbFootCu = (kgCmCu) -> kgCmCu * 6243e+1 # Kilogram per Centimeter Cubed to Pound per Foot Cubed
### Kilogram per Meter Cubed Conversions ###
convertDensity.kilogramMeterCu.gramCentimeterCu = kgMCu$gCmCu = (kgMCu) -> kgMCu / 1e+3 # Kilogram per Meter Cubed to Gram per Centimeter Cubed
convertDensity.kilogramMeterCu.gramMeterCu = kgMCu$gMCu = (kgMCu) -> kgMCu * 1e+3 # Kilogram per Meter Cubed to Gram per Meter Cubed
convertDensity.kilogramMeterCu.kilogramCentimeterCu = kgMCu$kgCmCu = (kgMCu) -> kgMCu / 1e+6# Kilogram per Meter Cubed to Kilogram per Centimeter Cubed
convertDensity.kilogramMeterCu.kilogramMeterCu = kgMCu$kgMCu = (kgMCu) -> kgMCu # Kilogram per Meter Cubed to Kilogram per Meter Cubed
convertDensity.kilogramMeterCu.ounceInchCu = kgMCu$ozInchCu = (kgMCu) -> kgMCu / 173e+1 # Kilogram per Meter Cubed to Ounce per Inch Cubed
convertDensity.kilogramMeterCu.ounceFootCu = kgMCu$ozFootCu = (kgMCu) -> kgMCu / 1.001 # Kilogram per Meter Cubed to Ounce per Foot Cubed
convertDensity.kilogramMeterCu.poundInchCu = kgMCu$lbInchCu = (kgMCu) -> kgMCu / 2768e+1 # Kilogram per Meter Cubed to Pound per Inch Cubed
convertDensity.kilogramMeterCu.poundFootCu = kgMCu$lbFootCu = (kgMCu) -> kgMCu / 16.02 # Kilogram per Meter Cubed to Pound per Foot Cubed
### Ounce per Inch Cubed Conversions ###
convertDensity.ounceInchCu.gramCentimeterCu = ozInchCu$gCmCu = (ozInchCu) -> ozInchCu * 1.73 # Ounce per Inch Cubed to Gram per Centimeter Cubed
convertDensity.ounceInchCu.gramMeterCu = ozInchCu$gMCu = (ozInchCu) -> ozInchCu * 173e+4 # Ounce per Inch Cubed to Gram per Meter Cubed
convertDensity.ounceInchCu.kilogramCentimeterCu = ozInchCu$kgCmCu = (ozInchCu) -> ozInchCu / 578 # Ounce per Inch Cubed to Kilogram per Centimeter Cubed
convertDensity.ounceInchCu.kilogramMeterCu = ozInchCu$kgMCu = (ozInchCu) -> ozInchCu * 173e+1 # Ounce per Inch Cubed to Kilogram per Meter Cubed
convertDensity.ounceInchCu.ounceInchCu = ozInchCu$ozInchCu = (ozInchCu) -> ozInchCu # Ounce per Inch Cubed to Ounce per Inch Cubed
convertDensity.ounceInchCu.ounceFootCu = ozInchCu$ozFootCu = (ozInchCu) -> ozInchCu * 1728 # Ounce per Inch Cubed to Ounce per Foot Cubed
convertDensity.ounceInchCu.poundInchCu = ozInchCu$lbInchCu = (ozInchCu) -> ozInchCu / 16 # Ounce per Inch Cubed to Pound per Inch Cubed
convertDensity.ounceInchCu.poundFootCu = ozInchCu$lbFootCu = (ozInchCu) -> ozInchCu * 108 # Ounce per Inch Cubed to Pound per Foot Cubed
### Ounce per Foot Cubed Conversions ###
convertDensity.ounceFootCu.gramCentimeterCu = ozFootCu$gCmCu = (ozFootCu) -> ozFootCu / 998.8 # Ounce per Foot Cubed to Gram per Centimeter Cubed
convertDensity.ounceFootCu.gramMeterCu = ozFootCu$gMCu = (ozFootCu) -> ozFootCu * 1001 # Ounce per Foot Cubed to Gram per Meter Cubed
convertDensity.ounceFootCu.kilogramCentimeterCu = ozFootCu$kgCmCu = (ozFootCu) -> ozFootCu / 9988e+2 # Ounce per Foot Cubed to Kilogram per Centimeter Cubed
convertDensity.ounceFootCu.kilogramMeterCu = ozFootCu$kgMCu = (ozFootCu) -> ozFootCu * 1.001 # Ounce per Foot Cubed to Kilogram per Meter Cubed
convertDensity.ounceFootCu.ounceInchCu = ozFootCu$ozInchCu = (ozFootCu) -> ozFootCu / 1728 # Ounce per Foot Cubed to Ounce per Inch Cubed
convertDensity.ounceFootCu.ounceFootCu = ozFootCu$ozFootCu = (ozFootCu) -> ozFootCu # Ounce per Foot Cubed to Ounce per Foot Cubed
convertDensity.ounceFootCu.poundInchCu = ozFootCu$lbInchCu = (ozFootCu) -> ozFootCu / 2765e+1 # Ounce per Foot Cubed to Pound per Inch Cubed
convertDensity.ounceFootCu.poundFootCu = ozFootCu$lbFootCu = (ozFootCu) -> ozFootCu / 16 # Ounce per Foot Cubed to Pound per Foot Cubed
### Pound per Inch Cubed Conversions ###
convertDensity.poundInchCu.gramCentimeterCu = lbInchCu$gCmCu = (lbInchCu) -> lbInchCu * 27.68 # Pound per Inch Cubed to Gram per Centimeter Cubed
convertDensity.poundInchCu.gramMeterCu = lbInchCu$gMCu = (lbInchCu) -> lbInchCu * 2768e+4 # Pound per Inch Cubed to Gram per Meter Cubed
convertDensity.poundInchCu.kilogramCentimeterCu = lbInchCu$kgCmCu = (lbInchCu) -> lbInchCu / 36.13 # Pound per Inch Cubed to Kilogram per Centimeter Cubed
convertDensity.poundInchCu.kilogramMeterCu = lbInchCu$kgMCu = (lbInchCu) -> lbInchCu * 2768e+1 # Pound per Inch Cubed to Kilogram per Meter Cubed
convertDensity.poundInchCu.ounceInchCu = lbInchCu$ozInchCu = (lbInchCu) -> lbInchCu * 16 # Pound per Inch Cubed to Ounce per Inch Cubed
convertDensity.poundInchCu.ounceFootCu = lbInchCu$ozFootCu = (lbInchCu) -> lbInchCu * 2765e+1 # Pound per Inch Cubed to Ounce per Foot Cubed
convertDensity.poundInchCu.poundInchCu = lbInchCu$lbInchCu = (lbInchCu) -> lbInchCu # Pound per Inch Cubed to Pound per Inch Cubed
convertDensity.poundInchCu.poundFootCu = lbInchCu$lbFootCu = (lbInchCu) -> lbInchCu * 1728 # Pound per Inch Cubed to Pound per Foot Cubed
### Pound per Foot Cubed Conversions ###
convertDensity.poundFootCu.gramCentimeterCu = lbFootCu$gCmCu = (lbFootCu) -> lbFootCu / 62.43 # Pound per Foot Cubed to Gram per Centimeter Cubed
convertDensity.poundFootCu.gramMeterCu = lbFootCu$gMCu = (lbFootCu) -> lbFootCu * 1602e+1 # Pound per Foot Cubed to Gram per Meter Cubed
convertDensity.poundFootCu.kilogramCentimeterCu = lbFootCu$kgCmCu = (lbFootCu) -> lbFootCu / 6243e+1 # Pound per Foot Cubed to Kilogram per Centimeter Cubed
convertDensity.poundFootCu.kilogramMeterCu = lbFootCu$kgMCu = (lbFootCu) -> lbFootCu * 16.02 # Pound per Foot Cubed to Kilogram per Meter Cubed
convertDensity.poundFootCu.ounceInchCu = lbFootCu$ozInchCu = (lbFootCu) -> lbFootCu / 108 # Pound per Foot Cubed to Ounce per Inch Cubed
convertDensity.poundFootCu.ounceFootCu = lbFootCu$ozFootCu = (lbFootCu) -> lbFootCu * 16 # Pound per Foot Cubed to Ounce per Foot Cubed
convertDensity.poundFootCu.poundInchCu = lbFootCu$lbInchCu = (lbFootCu) -> lbFootCu / 1728 # Pound per Foot Cubed to Pound per Inch Cubed
convertDensity.poundFootCu.poundFootCu = lbFootCu$lbFootCu = (lbFootCu) -> lbFootCu # Pound per Foot Cubed to Pound per Foot Cubed
### Dimension Conversions ###
convertDimension =
d2: {}
d3: {}
### 2D Conversions ###
# Credit: https://stackoverflow.com/a/13091694/1544937
convertDimension.d2.d3 = d2$d3 = (x, y, zTarget = 0) ->
vector = new THREE.Vector3()
coordinates = new THREE.Vector3()
vector.set (x / window.innerWidth) * 2 - 1, -(y / window.innerHeight) * 2 + 1, 0
vector.unproject camera
vector.sub(camera.position).normalize()
distance = (zTarget - camera.position.z) / vector.z
coordinates.copy(camera.position).add vector.multiplyScalar distance
return coordinates
convertDimension.d2.d2 = d2$d2 = (x, y) -> new THREE.Vector2 x, y
### 3D Conversions ###
# Credit: https://stackoverflow.com/a/36706930/1544937
convertDimension.d3.d2 = d3$d2 = (x, y, z) ->
halfWidth = window.innerWidth / 2
halfHeight = window.innerHeight / 2
coordinates = new THREE.Vector3 x, y, z
coordinates.project camera
coordinates.x = coordinates.x * halfWidth + halfWidth
coordinates.y = -coordinates.y * halfHeight + halfHeight
return new THREE.Vector2 coordinates.x, coordinates.y
convertDimension.d3.d3 = d3$d3 = (x, y, z) -> new THREE.Vector3 x, y, z
### Energy Conversions ###
convertEnergy =
joule: {}
kilojoule: {}
watt: {}
kilowatt: {}
### Joule Conversions ###
convertEnergy.joule.joule = j$j = (j) -> j # Joule to Joule
convertEnergy.joule.kilojoule = j$kj = (j) -> j / 1e+3 # Joule to Kilojoule
convertEnergy.joule.watt = j$wh = (j) -> j / 36e+2 # Joule to Watt
convertEnergy.joule.kilowatt = j$kwh = (j) -> j / 36e+5 # Joule to Kilowatt
### Kilojoule Conversions ###
convertEnergy.kilojoule.joule = kj$j = (kj) -> kj * 1e+3 # Kilojoule to Joule
convertEnergy.kilojoule.kilojoule = kj$kj = (kj) -> kj # Kilojoule to Kilojoule
convertEnergy.kilojoule.watt = kj$wh = (kj) -> kj / 3.6 # Kilojoule to Watt
convertEnergy.kilojoule.kilowatt = kj$kwh = (kj) -> kj / 36e+2 # Kilojoule to Kilowatt
### Watt Conversions ###
convertEnergy.watt.joule = wh$j = (wh) -> wh * 36e+2 # Watt to Joule
convertEnergy.watt.kilojoule = wh$kj = (wh) -> wh * 3.6 # Watt to Kilojoule
convertEnergy.watt.watt = wh$wh = (wh) -> wh # Watt to Watt
convertEnergy.watt.kilowatt = wh$kwh = (wh) -> wh / 1e+3 # Watt to Kilowatt
### Kilowatt Conversions ###
convertEnergy.kilowatt.joule = kwh$j = (kwh) -> kwh * 36e+5 # Kilowatt to Joule
convertEnergy.kilowatt.kilojoule = kwh$kj = (kwh) -> kwh * 36e+2 # Kilowatt to Kilojoule
convertEnergy.kilowatt.watt = kwh$wh = (kwh) -> kwh * 1e+3 # Kilowatt to Watt
convertEnergy.kilowatt.kilowatt = kwh$kwh = (kwh) -> kwh # Kilowatt to Kilowatt
### Frequency Conversions ###
convertFrequency =
hertz: {}
kilohertz: {}
megahertz: {}
gigahertz: {}
### Hertz Conversions ###
convertFrequency.hertz.hertz = hz$hz = (hz) -> hz # Hertz to Hertz
convertFrequency.hertz.kilohertz = hz$khz = (hz) -> hz / 1e+3 # Hertz to Kilohertz
convertFrequency.hertz.megahertz = hz$mhz = (hz) -> hz / 1e+6 # Hertz to Megahertz
convertFrequency.hertz.gigahertz = hz$ghz = (hz) -> hz / 1e+9 # Hertz to Gigahertz
### Kilohertz Conversions ###
convertFrequency.kilohertz.hertz = khz$hz = (khz) -> khz * 1e+3 # Kilohertz to Hertz
convertFrequency.kilohertz.kilohertz = khz$khz = (khz) -> khz # Kilohertz to Kilohertz
convertFrequency.kilohertz.megahertz = khz$mhz = (khz) -> khz / 1e+3 # Kilohertz to Megahertz
convertFrequency.kilohertz.gigahertz = khz$ghz = (khz) -> khz / 1e+6 # Kilohertz to Gigahertz
### Megahertz Conversions ###
convertFrequency.megahertz.hertz = mhz$hz = (mhz) -> mhz * 1e+6 # Megahertz to Hertz
convertFrequency.megahertz.kilohertz = mhz$khz = (mhz) -> mhz * 1e+3 # Megahertz to Kilohertz
convertFrequency.megahertz.megahertz = mhz$mhz = (mhz) -> mhz # Megahertz to Megahertz
convertFrequency.megahertz.gigahertz = mhz$ghz = (mhz) -> mhz / 1e+3 # Megahertz to Gigahertz
### Gigahertz Conversions ###
convertFrequency.gigahertz.hertz = ghz$hz = (ghz) -> ghz * 1e+9 # Gigahertz to Hertz
convertFrequency.gigahertz.kilohertz = ghz$khz = (ghz) -> ghz * 1e+6 # Gigahertz to Kilohertz
convertFrequency.gigahertz.megahertz = ghz$mhz = (ghz) -> ghz * 1e+3 # Gigahertz to Megahertz
convertFrequency.gigahertz.gigahertz = ghz$ghz = (ghz) -> ghz # Gigahertz to Gigahertz
### Illumination Conversions ###
convertIllumination =
phot: {}
lux: {}
nox: {}
flame: {}
### Phot Conversions ###
convertIllumination.phot.phot = ph$ph = (ph) -> ph # Phot to Phot
convertIllumination.phot.lux = ph$lx = (ph) -> ph * 1e+4 # Phot to Lux
convertIllumination.phot.nox = ph$nox = (ph) -> ph * 1e+7 # Phot to Nox
convertIllumination.phot.flame = ph$flame = (ph) -> ph * 232.2576 # Phot to Flame
### Lux Conversions ###
convertIllumination.lux.phot = lx$ph = (lx) -> lx / 1e+4 # Lux to Phot
convertIllumination.lux.lux = lx$lx = (lx) -> lx # Lux to Lux
convertIllumination.lux.nox = lx$nox = (lx) -> lx * 1e+4 # Lux to Nox
convertIllumination.lux.flame = lx$flame = (lx) -> lx / 43.055641667 # Lux to Flame
### Nox Conversions ###
convertIllumination.nox.phot = nox$ph = (nox) -> nox / 1e+7 # Nox to Phot
convertIllumination.nox.lux = nox$lx = (nox) -> nox / 1e+4 # Nox to Lux
convertIllumination.nox.nox = nox$nox = (nox) -> nox # Nox to Nox
convertIllumination.nox.flame = nox$flame = (nox) -> nox / 43055.641667 # Nox to Flame
### Flame Conversions ###
convertIllumination.flame.phot = flame$ph = (flame) -> flame / 232.2576 # Flame to Phot
convertIllumination.flame.lux = flame$lx = (flame) -> flame * 43.055641667 # Flame to Lux
convertIllumination.flame.nox = flame$nox = (flame) -> flame * 43055.641667 # Flame to Nox
convertIllumination.flame.flame = flame$flame = (flame) -> flame # Flame to Flame
### Length Conversions ###
convertLength =
nanometer: {}
micrometer: {}
millimeter: {}
centimeter: {}
decimeter: {}
meter: {}
decameter: {}
hectometer: {}
kilometer: {}
inch: {}
foot: {}
yard: {}
mile: {}
### Nanometer Conversions ###
convertLength.nanometer.nanometer = nm$nm = (nm) -> nm # Nanometer to Nanometer
convertLength.nanometer.micrometer = nm$um = (nm) -> nm / 1e+3 # Nanometer to Micrometer
convertLength.nanometer.millimeter = nm$mm = (nm) -> nm / 1e+6 # Nanometer to Millimeter
convertLength.nanometer.centimeter = nm$cm = (nm) -> nm / 1e+7 # Nanometer to Centimeter
convertLength.nanometer.decimeter = nm$dm = (nm) -> nm / 1e+8 # Nanometer to Decimeter
convertLength.nanometer.meter = nm$m = (nm) -> nm / 1e+9 # Nanometer to Meter
convertLength.nanometer.decameter = nm$dam = (nm) -> nm / 1e+10 # Nanometer to Decameter
convertLength.nanometer.hectometer = nm$hm = (nm) -> nm / 1e+11 # Nanometer to Hectometer
convertLength.nanometer.kilometer = nm$km = (nm) -> nm / 1e+12 # Nanometer to Kilometer
convertLength.nanometer.inch = nm$inch = (nm) -> nm / 254e+5 # Nanometer to Inch
convertLength.nanometer.foot = nm$foot = (nm) -> nm / 3048e+5 # Nanometer to Foot
convertLength.nanometer.yard = nm$yard = (nm) -> nm / 9144e+5 # Nanometer to Yard
convertLength.nanometer.mile = nm$mile = (nm) -> nm / 1609344e+6 # Nanometer to Mile
### Micrometer Conversions ###
convertLength.micrometer.nanometer = um$nm = (um) -> um * 1e+3 # Micrometer to Nanometer
convertLength.micrometer.micrometer = um$um = (um) -> um # Micrometer to Micrometer
convertLength.micrometer.millimeter = um$mm = (um) -> um / 1e+3 # Micrometer to Millimeter
convertLength.micrometer.centimeter = um$cm = (um) -> um / 1e+4 # Micrometer to Centimeter
convertLength.micrometer.decimeter = um$dm = (um) -> um / 1e+5 # Micrometer to Decimeter
convertLength.micrometer.meter = um$m = (um) -> um / 1e+6 # Micrometer to Meter
convertLength.micrometer.decameter = um$dam = (um) -> um / 1e+7 # Micrometer to Decameter
convertLength.micrometer.hectometer = um$hm = (um) -> um / 1e+8 # Micrometer to Hectometer
convertLength.micrometer.kilometer = um$km = (um) -> um / 1e+9 # Micrometer to Kilometer
convertLength.micrometer.inch = um$inch = (um) -> um / 254e+2 # Micrometer to Inch
convertLength.micrometer.foot = um$foot = (um) -> um / 3048e+2 # Micrometer to Foot
convertLength.micrometer.yard = um$yard = (um) -> um / 9144e+2 # Micrometer to Yard
convertLength.micrometer.mile = um$mile = (um) -> um / 1609344e+3 # Micrometer to Mile
### Millimeter Conversions ###
convertLength.millimeter.nanometer = mm$nm = (mm) -> mm * 1e+6 # Millimeter to Nanometer
convertLength.millimeter.micrometer = mm$um = (mm) -> mm * 1e+3 # Millimeter to Micrometer
convertLength.millimeter.millimeter = mm$mm = (mm) -> mm # Millimeter to Millimeter
convertLength.millimeter.centimeter = mm$cm = (mm) -> mm / 1e+1 # Millimeter to Centimeter
convertLength.millimeter.decimeter = mm$dm = (mm) -> mm / 1e+2 # Millimeter to Decimeter
convertLength.millimeter.meter = mm$m = (mm) -> mm / 1e+3 # Millimeter to Meter
convertLength.millimeter.decameter = mm$dam = (mm) -> mm / 1e+4 # Millimeter to Decameter
convertLength.millimeter.hectometer = mm$hm = (mm) -> mm / 1e+5 # Millimeter to Hectometer
convertLength.millimeter.kilometer = mm$km = (mm) -> mm / 1e+6 # Millimeter to Kilometer
convertLength.millimeter.inch = mm$inch = (mm) -> mm / 25.4 # Millimeter to Inch
convertLength.millimeter.foot = mm$foot = (mm) -> mm / 304.8 # Millimeter to Foot
convertLength.millimeter.yard = mm$yard = (mm) -> mm / 914.4 # Millimeter to Yard
convertLength.millimeter.mile = mm$mile = (mm) -> mm / 1609344 # Millimeter to Mile
### Centimeter Conversions ###
convertLength.centimeter.nanometer = cm$nm = (cm) -> cm * 1e+7 # Centimeter to Nanometer
convertLength.centimeter.micrometer = cm$um = (cm) -> cm * 1e+4 # Centimeter to Micrometer
convertLength.centimeter.millimeter = cm$mm = (cm) -> cm * 1e+1 # Centimeter to Millimeter
convertLength.centimeter.centimeter = cm$cm = (cm) -> cm # Centimeter to Centimeter
convertLength.centimeter.decimeter = cm$dm = (cm) -> cm / 1e+1 # Centimeter to Decimeter
convertLength.centimeter.meter = cm$m = (cm) -> cm / 1e+2 # Centimeter to Meter
convertLength.centimeter.decameter = cm$dam = (cm) -> cm / 1e+3 # Centimeter to Decameter
convertLength.centimeter.hectometer = cm$hm = (cm) -> cm / 1e+4 # Centimeter to Hectometer
convertLength.centimeter.kilometer = cm$km = (cm) -> cm / 1e+5 # Centimeter to Kilometer
convertLength.centimeter.inch = cm$inch = (cm) -> cm / 2.54 # Centimeter to Inch
convertLength.centimeter.foot = cm$foot = (cm) -> cm / 30.48 # Centimeter to Foot
convertLength.centimeter.yard = cm$yard = (cm) -> cm / 91.44 # Centimeter to Yard
convertLength.centimeter.mile = cm$mile = (cm) -> cm / 160934.4 # Centimeter to Mile
### Decimeter Conversions ###
convertLength.decimeter.nanometer = dm$nm = (dm) -> dm * 1e+8 # Decimeter to Nanometer
convertLength.decimeter.micrometer = dm$um = (dm) -> dm * 1e+5 # Decimeter to Micrometer
convertLength.decimeter.millimeter = dm$mm = (dm) -> dm * 1e+2 # Decimeter to Millimeter
convertLength.decimeter.centimeter = dm$cm = (dm) -> dm * 1e+1 # Decimeter to Centimeter
convertLength.decimeter.decimeter = dm$dm = (dm) -> dm # Decimeter to Decimeter
convertLength.decimeter.meter = dm$m = (dm) -> dm / 1e+1 # Decimeter to Meter
convertLength.decimeter.decameter = dm$dam = (dm) -> dm / 1e+2 # Decimeter to Decameter
convertLength.decimeter.hectometer = dm$hm = (dm) -> dm / 1e+3 # Decimeter to Hectometer
convertLength.decimeter.kilometer = dm$km = (dm) -> dm / 1e+4 # Decimeter to Kilometer
convertLength.decimeter.inch = dm$inch = (dm) -> dm * 3.937007874 # Decimeter to Inch
convertLength.decimeter.foot = dm$foot = (dm) -> dm / 3.048 # Decimeter to Foot
convertLength.decimeter.yard = dm$yard = (dm) -> dm / 9.144 # Decimeter to Yard
convertLength.decimeter.mile = dm$mile = (dm) -> dm / 16093.44 # Decimeter to Mile
### Meter Conversions ###
convertLength.meter.nanometer = m$nm = (m) -> m * 1e+9 # Meter to Nanometer
convertLength.meter.micrometer = m$um = (m) -> m * 1e+6 # Meter to Micrometer
convertLength.meter.millimeter = m$mm = (m) -> m * 1e+3 # Meter to Millimeter
convertLength.meter.centimeter = m$cm = (m) -> m * 1e+2 # Meter to Centimeter
convertLength.meter.decimeter = m$dm = (m) -> m * 1e+1 # Meter to Decimeter
convertLength.meter.meter = m$m = (m) -> m # Meter to Meter
convertLength.meter.decameter = m$dam = (m) -> m / 1e+1 # Meter to Decameter
convertLength.meter.hectometer = m$hm = (m) -> m / 1e+2 # Meter to Hectometer
convertLength.meter.kilometer = m$km = (m) -> m / 1e+3 # Meter to Kilometer
convertLength.meter.inch = m$inch = (m) -> m * 39.37007874 # Meter to Inch
convertLength.meter.foot = m$foot = (m) -> m * 3.280839895 # Meter to Foot
convertLength.meter.yard = m$yard = (m) -> m * 1.0936132983 # Meter to Yard
convertLength.meter.mile = m$mile = (m) -> m / 1609.344 # Meter to Mile
### Decameter Conversions ###
convertLength.decameter.nanometer = dam$nm = (dam) -> dam * 1e+10 # Decameter to Nanometer
convertLength.decameter.micrometer = dam$um = (dam) -> dam * 1e+7 # Decameter to Micrometer
convertLength.decameter.millimeter = dam$mm = (dam) -> dam * 1e+4 # Decameter to Millimeter
convertLength.decameter.centimeter = dam$cm = (dam) -> dam * 1e+3 # Decameter to Centimeter
convertLength.decameter.decimeter = dam$dm = (dam) -> dam * 1e+2 # Decameter to Decimeter
convertLength.decameter.meter = dam$m = (dam) -> dam * 1e+1 # Decameter to Meter
convertLength.decameter.decameter = dam$dam = (dam) -> dam # Decameter to Decameter
convertLength.decameter.hectometer = dam$hm = (dam) -> dam / 1e+1 # Decameter to Hectometer
convertLength.decameter.kilometer = dam$km = (dam) -> dam / 1e+2 # Decameter to Kilometer
convertLength.decameter.inch = dam$inch = (dam) -> dam * 393.7007874 # Decameter to Inch
convertLength.decameter.foot = dam$foot = (dam) -> dam * 32.80839895 # Decameter to Foot
convertLength.decameter.yard = dam$yard = (dam) -> dam * 10.936132983 # Decameter to Yard
convertLength.decameter.mile = dam$mile = (dam) -> dam / 160.9344 # Decameter to Mile
### Hectometer Conversions ###
convertLength.hectometer.nanometer = hm$nm = (hm) -> hm * 1e+11 # Hectometer to Nanometer
convertLength.hectometer.micrometer = hm$um = (hm) -> hm * 1e+8 # Hectometer to Micrometer
convertLength.hectometer.millimeter = hm$mm = (hm) -> hm * 1e+5 # Hectometer to Millimeter
convertLength.hectometer.centimeter = hm$cm = (hm) -> hm * 1e+4 # Hectometer to Centimeter
convertLength.hectometer.decimeter = hm$dm = (hm) -> hm * 1e+3 # Hectometer to Decimeter
convertLength.hectometer.meter = hm$m = (hm) -> hm * 1e+2 # Hectometer to Meter
convertLength.hectometer.decameter = hm$dam = (hm) -> hm * 1e+1 # Hectometer to Decameter
convertLength.hectometer.hectometer = hm$hm = (hm) -> hm # Hectometer to Hectometer
convertLength.hectometer.kilometer = hm$km = (hm) -> hm / 1e+1 # Hectometer to Kilometer
convertLength.hectometer.inch = hm$inch = (hm) -> hm * 3937.007874 # Hectometer to Inch
convertLength.hectometer.foot = hm$foot = (hm) -> hm * 328.0839895 # Hectometer to Foot
convertLength.hectometer.yard = hm$yard = (hm) -> hm * 109.36132983 # Hectometer to Yard
convertLength.hectometer.mile = hm$mile = (hm) -> hm / 16.09344 # Hectometer to Mile
### Kilometer Conversions ###
convertLength.kilometer.nanometer = km$nm = (km) -> km * 1e+12 # Kilometer to Nanometer
convertLength.kilometer.micrometer = km$um = (km) -> km * 1e+9 # Kilometer to Micrometer
convertLength.kilometer.millimeter = km$mm = (km) -> km * 1e+6 # Kilometer to Millimeter
convertLength.kilometer.centimeter = km$cm = (km) -> km * 1e+5 # Kilometer to Centimeter
convertLength.kilometer.decimeter = km$dm = (km) -> km * 1e+4 # Kilometer to Decimeter
convertLength.kilometer.meter = km$m = (km) -> km * 1e+3 # Kilometer to Meter
convertLength.kilometer.decameter = km$dam = (km) -> km * 1e+2 # Kilometer to Decameter
convertLength.kilometer.hectometer = km$hm = (km) -> km * 1e+1 # Kilometer to Hectometer
convertLength.kilometer.kilometer = km$km = (km) -> km # Kilometer to Kilometer
convertLength.kilometer.inch = km$inch = (km) -> km * 39370.07874 # Kilometer to Inch
convertLength.kilometer.foot = km$foot = (km) -> km * 3280.839895 # Kilometer to Foot
convertLength.kilometer.yard = km$yard = (km) -> km * 1093.6132983 # Kilometer to Yard
convertLength.kilometer.mile = km$mile = (km) -> km / 1.609344 # Kilometer to Mile
### Inch Conversions ###
convertLength.inch.nanometer = inch$nm = (inch) -> inch * 254e+5 # Inch to Nanometer
convertLength.inch.micrometer = inch$um = (inch) -> inch * 254e+2 # Inch to Micrometer
convertLength.inch.millimeter = inch$mm = (inch) -> inch * 25.4 # Inch to Millimeter
convertLength.inch.centimeter = inch$cm = (inch) -> inch * 2.54 # Inch to Centimeter
convertLength.inch.decimeter = inch$dm = (inch) -> inch / 3.937007874 # Inch to Decimeter
convertLength.inch.meter = inch$m = (inch) -> inch / 39.37007874 # Inch to Meter
convertLength.inch.decameter = inch$dam = (inch) -> inch / 393.7007874 # Inch to Decameter
convertLength.inch.hectometer = inch$hm = (inch) -> inch / 3937.007874 # Inch to Hectometer
convertLength.inch.kilometer = inch$km = (inch) -> inch / 39370.07874 # Inch to Kilometer
convertLength.inch.inch = inch$inch = (inch) -> inch # Inch to Inch
convertLength.inch.foot = inch$foot = (inch) -> inch / 12 # Inch to Foot
convertLength.inch.yard = inch$yard = (inch) -> inch / 36 # Inch to Yard
convertLength.inch.mile = inch$mile = (inch) -> inch / 63360 # Inch to Mile
### Foot Conversions ###
convertLength.foot.nanometer = foot$nm = (foot) -> foot * 3048e+5 # Foot to Nanometer
convertLength.foot.micrometer = foot$um = (foot) -> foot * 3048e+2 # Foot to Micrometer
convertLength.foot.millimeter = foot$mm = (foot) -> foot * 304.8 # Foot to Millimeter
convertLength.foot.centimeter = foot$cm = (foot) -> foot * 30.48 # Foot to Centimeter
convertLength.foot.decimeter = foot$dm = (foot) -> foot * 3.048 # Foot to Decimeter
convertLength.foot.meter = foot$m = (foot) -> foot / 3.280839895 # Foot to Meter
convertLength.foot.decameter = foot$dam = (foot) -> foot / 32.80839895 # Foot to Decameter
convertLength.foot.hectometer = foot$hm = (foot) -> foot / 328.0839895 # Foot to Hectometer