Last active
September 23, 2023 10:47
-
-
Save RezaAmd/f0299e9f59c1906819570170d4da99f0 to your computer and use it in GitHub Desktop.
Revisions
-
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // JavaScript: const angleCalculator = function(ax, ay, bx, by) { return Math.atan2(by - ay, bx - ax) * 180 / Math.PI } -
RezaAmd renamed this gist
Sep 23, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // JavaScript: const angleCalculator = function(ax, ay, bx, by) { return Math.atan2(by-ay, bx-ax) * 180 / Math.PI } -
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // JavaScript: const angleCalculator = function(ax, ay, bx, by) { return Math.atan((by-ay)/(bx-ax)) * 180 / Math.PI } -
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // JavaScript: const angleCalculator = function(xa, ya, xb, yb) { return Math.atan((yb-ya)/(xb-xa)) * 180 / Math.PI } -
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 0 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,4 @@ const angleCalculator = function(ax, ay, bx, by) { return Math.atan((by-ay)/(bx-ax)) * 180 / Math.PI } -
RezaAmd revised this gist
Sep 23, 2023 . No changes.There are no files selected for viewing
-
RezaAmd revised this gist
Sep 23, 2023 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,11 @@ // JavaScript: const angleCalculator = function(ax, ay, bx, by) { return Math.atan((by-ay)/(bx-ax)) * 180 / Math.PI } // C-Sharp: public double AngleCalculator(double ay, double ay, double bx, double by) { return Math.Atan((by-ay)/(bx-ax)) * 180 / Math.PI } -
RezaAmd revised this gist
Sep 23, 2023 . 2 changed files with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ const angleCalculator = function(ax, ay, bx, by) { return Math.atan((by-ay)/(bx-ax)) * 180 / Math.PI; } -
RezaAmd created this gist
Sep 23, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ // C-Sharp: public double CalculateAngle(double ax, double ay, double bx, double by) { return Math.Atan((by-ay)/(bx-ax)) * 180 / Math.PI; }