Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Elementary Polygons

Basic polygon functions

Functions

expand all

inpolygonPoints located inside or on edge of polygonal region
nsidedpolyRegular polygon
polyareaArea of polygon
polybufferCreate buffer around points or lines
rectintRectangle intersection area

Create and Modify

polyshape2-D polygons
addboundaryAdd polyshape boundary
rmboundaryRemove polyshape boundary
rmholesRemove holes in polyshape
rmsliversRemove polyshape boundary outliers
simplifySimplify polyshape boundaries

Query

boundaryVertex coordinates of polyshape boundary
isequalDetermine if polyshape objects are equal
isholeDetermine if polyshape boundary is a hole
isinteriorQuery points inside polyshape
issimplifiedDetermine if polyshape is well-defined
nearestvertexQuery nearest polyshape vertex
numboundariesNumber of polyshape boundaries
numsidesNumber of polyshape sides
overlapsDetermine whether polyshape objects overlap

Geometric Quantities

areaArea of polyshape
boundingboxBounding box of polyshape
centroidCentroid of polyshape
convhullConvex hull of polyshape
perimeterPerimeter of polyshape
triangulationTriangulate polyshape
turningdistCompute turning distance between polyshape objects

Boolean Operations

intersectIntersection of polyshape objects
subtractDifference of two polyshape objects
unionUnion of polyshape objects
xorExclusive OR of two polyshape objects

Transformation

polybufferBuffer polyshape
rotateRotate polyshape
scaleScale polyshape
translateTranslate polyshape

Utility

holesConvert polyshape hole boundaries to array of polyshape objects
plotPlot polyshape
regionsAccess polyshape regions
sortboundariesSort polyshape boundaries
sortregionsSort polyshape regions
Was this topic helpful?