---Deep Dive into the Coding Behind the Arctan function--- The arctan function can be used to find the angle from one set of 2D coordinates to another. Of course, most of you would use the "point towards (mouse pointer)" block to achieve the exact same thing that this project does. So what's so special about this code, you may ask? Well you can look inside and you will not find a single "point towards" block anywhere! This works using the arctan function, where you input two points on the coordinate plane, and this block outputs the angle from the first to the second point. Of course, this example calculates the angle from the arrow to your mouse pointer. -------------The Math Behind the Arctan Function-------------- The arctan function is a trigonometric function, you may know some of its close cousins like sine, cosine, and tangent. These common trigonometric functions represent ratios between the angles and sides of right triangles. This kind of math draws a right triangle where the hypotenuse is the line connecting your two dots. Arctan is the inverse of tan. It is tangent's reciprocal cousin. In mathematics, it is more commonly referred to as Atan, but in coding it is called Arctan. Anyways, this function uses the ratio of the sides of a right triangle in order to find the mystery angle. As always, happy coding :) - master-0-code
All code is by me: @master-0-code feel free to take this and use it in your own projects, as a matter of fact, I stole it from my game, Plane Fighter 2. whether you are copying this or just using it to further understand trig, please credit me if it is implemented into any of your projects.