Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

distance

jscalc Math.sqrt(Math.pow(((${x2})-(${x1})),2)+Math.pow((((${y2})-(${y1}))),2))[no url encoding]
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
    
161 uses - Created 2010-05-09 01:51:05 - Last used 2024-09-29 05:09:31
Is this command broken? Tell Jon if you know how to fix it.
Do you find this command offensive? Let Jon know.