Skip to content

Commit 386c448

Browse files
committed
Correct arc functions
1 parent 94dbcbb commit 386c448

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

dist/easycoder-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,23 +2866,23 @@ const EasyCoder_Core = {
28662866
return {
28672867
type: `constant`,
28682868
numeric: true,
2869-
content: parseInt(Math.acos(cdy, cdx) * (180/Math.PI), 10)
2869+
content: parseInt(Math.acos(cdy / cdx) * (180/Math.PI), 10)
28702870
};
28712871
case `asin`:
28722872
const ady = program.getValue(value.dy);
28732873
const adx = program.getValue(value.dx);
28742874
return {
28752875
type: `constant`,
28762876
numeric: true,
2877-
content: parseInt(Math.asin(ady, adx) * (180/Math.PI), 10)
2877+
content: parseInt(Math.asin(ady / adx) * (180/Math.PI), 10)
28782878
};
28792879
case `atan`:
28802880
const tdy = program.getValue(value.dy);
28812881
const tdx = program.getValue(value.dx);
28822882
return {
28832883
type: `constant`,
28842884
numeric: true,
2885-
content: parseInt(Math.atan(tdy, tdx) * (180/Math.PI), 10)
2885+
content: parseInt(Math.atan2(tdy, tdx) * (180/Math.PI), 10)
28862886
};
28872887
case `valueOf`:
28882888
const v = parseInt(program.getValue(value.value));
@@ -9012,7 +9012,7 @@ const EasyCoder = {
90129012
}
90139013
},
90149014
};
9015-
EasyCoder.version = `240930`;
9015+
EasyCoder.version = `241002`;
90169016
EasyCoder.timestamp = Date.now();
90179017
console.log(`EasyCoder loaded; waiting for page`);
90189018

js/easycoder/Core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,23 +2866,23 @@ const EasyCoder_Core = {
28662866
return {
28672867
type: `constant`,
28682868
numeric: true,
2869-
content: parseInt(Math.acos(cdy, cdx) * (180/Math.PI), 10)
2869+
content: parseInt(Math.acos(cdy / cdx) * (180/Math.PI), 10)
28702870
};
28712871
case `asin`:
28722872
const ady = program.getValue(value.dy);
28732873
const adx = program.getValue(value.dx);
28742874
return {
28752875
type: `constant`,
28762876
numeric: true,
2877-
content: parseInt(Math.asin(ady, adx) * (180/Math.PI), 10)
2877+
content: parseInt(Math.asin(ady / adx) * (180/Math.PI), 10)
28782878
};
28792879
case `atan`:
28802880
const tdy = program.getValue(value.dy);
28812881
const tdx = program.getValue(value.dx);
28822882
return {
28832883
type: `constant`,
28842884
numeric: true,
2885-
content: parseInt(Math.atan(tdy, tdx) * (180/Math.PI), 10)
2885+
content: parseInt(Math.atan2(tdy, tdx) * (180/Math.PI), 10)
28862886
};
28872887
case `valueOf`:
28882888
const v = parseInt(program.getValue(value.value));

js/easycoder/EasyCoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `240930`;
1+
EasyCoder.version = `241002`;
22
EasyCoder.timestamp = Date.now();
33
console.log(`EasyCoder loaded; waiting for page`);
44

0 commit comments

Comments
 (0)