Point_distance - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Calculates the distance between two point's (Pythagorean's theorem) and returns the result.
Parameters
- x1: (x1,y1) first coordinate
- y1
- x2: (x2,y2) second coordinate
- y2
Return Values
double: Returns the distance between two points.
Example Call
// demonstrates getting the distance between two points, (0,0) and (5,0), in this case the result is 5
var ptdist;
ptdist = point_distance(0, 0, 5, 0);
NOTOC