Definition in file textutils.tcl.
Go to the source code of this file.
Distances between line segments | |
The following code to compute distances between line segments and points stolen shamelessly from Rory Daulton (rorydaulton@email.com), who posted it to delphi-talk@elists.org. | |
dot (TclNumber x0, TclNumber y0, TclNumber x1, TclNumber y1) | |
par_area (TclNumber x1, TclNumber y1, TclNumber x2, TclNumber y2) | |
point_segment_distance (TclNumber x, TclNumber y, TclNumber ex0, TclNumber ey0, TclNumber ex1, TclNumber ey1) | |
segment_length (TclNumber x0, TclNumber y0, TclNumber x1, TclNumber y1) | |
segments_to_vectors (TclNumber ex0, TclNumber ey0, TclNumber ex1, TclNumber ey1, TclNumber x, TclNumber y) | |
Functions | |
forAllMatches (TextWidget w, Index from, Index to, TclString pattern, TclCommand script) | |
lfilter (TclList list, TclString pattern) | |
smartCompare (TclString a, TclString b) |
|
Find the dot product of two vectors. Definition at line 124 of file textutils.tcl. References dot(). Referenced by dot(). |
|
execute a script on every match in a text widget.
References forAllMatches(). Referenced by forAllMatches(). |
|
filter out items from a TclList.
References lfilter(). Referenced by lfilter(). |
|
Calculate the signed area of the parallelogram that is formed by two vectors (by the origin and two given points). Definition at line 139 of file textutils.tcl. References par_area(). Referenced by par_area(). |
|
Give distance of a point from a line segment. Definition at line 146 of file textutils.tcl. References point_segment_distance(). Referenced by point_segment_distance(). |
|
Find the length of a line segment. Definition at line 131 of file textutils.tcl. References segment_length(). Referenced by segment_length(). |
|
Convert two directed line segments, starting from the same point, to vectors Definition at line 110 of file textutils.tcl. References segments_to_vectors(). Referenced by segments_to_vectors(). |
|
compare strings intelligently like ls -v does Definition at line 61 of file textutils.tcl. References smartCompare(). Referenced by smartCompare(). |