Point_direction - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Calculates the direction from a given point to the second given point in degrees and returns the result.
Parameters
- x1: (x1,y1) represent the first coordinate
- y1
- x2: (x2,y2) represent the second coordinate
- y2
Return Values
double: Returns the angle in degrees.
Example Call
// demonstrates getting the angle in degrees from one point to another
var ptdir;
ptdir = point_direction(0, 0, 5, 5);
NOTOC