Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 321 Bytes

distance.md

File metadata and controls

12 lines (8 loc) · 321 Bytes

Back to reference

distance(x1, y1, x2, y2)

Returns the distance between point 1 (x1, y1) and point 2 (x2, y2).

Example:

Calculate the distance between point 100, 100 and point 200, 200. The result will be around 141.42.

let d = gmynd.distance(100, 100, 200, 200);