Commit 91dcd65
true-fantom/math: Add true sin/cos/tan block. (TurboWarp#1959)
sorry mio
In Scratch/Turbowarp, the sin/cos/tan/asin/acos/atan blocks don't return
as expected-- they're run through several other equations to deal with
rounding, and to make the blocks compatible with degrees.

While this makes the blocks more user-friendly, it can be annoying for
people who want the original functions to have to essentially undo the
extra calculations. This PR adds a new block to the Math extension which
introduces a new block, featuring all the same trig functions, but
returning exactly what their Javascript Math counterpart does.

---------
Co-authored-by: DangoCat[bot] <[email protected]>1 parent 9980c77 commit 91dcd65
1 file changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
500 | 515 | | |
501 | 516 | | |
502 | 517 | | |
| |||
569 | 584 | | |
570 | 585 | | |
571 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
572 | 593 | | |
573 | 594 | | |
574 | 595 | | |
| |||
662 | 683 | | |
663 | 684 | | |
664 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
665 | 706 | | |
666 | 707 | | |
667 | 708 | | |
| |||
0 commit comments