/ Published in: TCL
Expand |
Embed | Plain Text
proc _length2d {x1 y1 x2 y2} { # Procedure to determine 2d length of a 2 point line. set length2d [expr sqrt((($x2 - $x1) * ($x2 - $x1)) + (($y2 - $y1) * ($y2 - $y1)))] return $length2d }
You need to login to post a comment.
