Draw Line Segments (anti aliased)
by Alvin
23 Nov 2009
(Updated 02 Feb 2010)
Drawing line segments, Distances from line segments, and line segment masks
|
Watch this File
|
| File Information |
| Description |
computes the distance from a given line segment (in 2d) or draws an anti aliased line
see http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html for computation of the orthogonal distance to the line.
Where appropriate, gets the orthogonal distance to the line, or one of the two end points.
Can be used to make anti aliased line segment(s) drawings / masks (see lineMask.m)
Can also be used to compute the distance from multiple line segments by taking the minimum of the distances to each line segment.
Version 0.1: Nov 23, 2009 |
| MATLAB release |
MATLAB 7.8 (R2009a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 02 Feb 2010 |
Changed title to be more descriptive |
|
Contact us at files@mathworks.com