geom2d

Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons...

https://github.com/mattools/matGeom

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

David Legland (2026). geom2d (https://in.mathworks.com/matlabcentral/fileexchange/7844-geom2d), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.25.0

renamed inertiaEllipse into equivalentEllipse, added principalAxes, various bug fixes.

Download
1.24.0

add new functions for polygons

Download
1.23.1

update project link

Download
1.23.0

* added new functions: randomPointInPolygon, resamplePolygonByLength, polygonEdges
* improved precision of computation for several functions (eg isPointOnEdge, isParallel/isPerpendicular...)
* updated intersectLineCircle, minDistancePoints

Download
1.22.0

various updates in header docs

Download
1.21.0

remove license statements

Download
1.20.0

add missing utility directory, update description

Download
1.19.0

update computation of polygon/polyline self-intersections, add registerICP for Iterative Closest Point registration, add some functions (polygonSymmetryAxis, signatureToPolygon).
Some deprecated functions were removed.

Download
1.18.0

update medialAxisConvex, add smoothPolygon, smoothPolyline, findClosestPoint functions

Download
1.17.0

fix several bugs (clipEdge, removeMultipleVertices...), various doc update, add some demos for polynomial curves

Download
1.16.0

various code cleanup and doc updates

Download
1.15.0

lot of code cleanup, new functions for working with polygons, clean up drawing functions

Download
1.14.0

fixed bugs in intersectLineCircle, added minimumCaliperDiameter and averagePointSet of a set of points. Now uses degrees for representing shapes

Download
1.13.0

split library in several packages, add several functions (circle and circle-line intersections, computation of inertia ellipse)

Download
1.12.0

fix bugs (intersectLines, isPointOnEdge), remove obsolete licence considerations

Download
1.11.0

bug fixes (isPointOnEdge, intersectPolylines), remove obsolete licence info

Download