Draw Line Segments (anti aliased)

Version 1.1.0.0 (3.73 KB) by Alvin
Drawing line segments, Distances from line segments, and line segment masks
1.2K Downloads
Updated 2 Feb 2010

View License

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

Cite As

Alvin (2024). Draw Line Segments (anti aliased) (https://www.mathworks.com/matlabcentral/fileexchange/25937-draw-line-segments-anti-aliased), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Changed title to be more descriptive

1.0.0.0