![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
NAME
distance - returns the distance between two points.
SYNOPSIS
distance -x1 [VALUE_X1] -y1 [VALUE_Y1] -x2 [VALUE_X2] -y2 [VALUE_U2]
DESCRIPTION
The distance command uses the javascript Math function to calculate
the distance between two sets of x,y coordinates.
EXAMPLES
Example: distance -x1 0 -y1 0 -x2 4 -y2 0
Result: 4
Example: distance -x1 0 -y1 0 -x2 2 -y2 2
Result: 2.8284271247461903
AUTHOR
Paul M. Boren
pmboren AT gmail DOT com