Contents | GEOM2D Geometry 2D Toolbox |
angle2Points | ANGLE2POINTS Compute horizontal angle between 2 points. |
angle3Points | ANGLE3POINTS Compute oriented angle made by 3 points. |
angleAbsDiff | ANGLEABSDIFF Absolute difference between two angles. |
angleDiff | ANGLEDIFF Difference between two angles. |
angleSort | ANGLESORT Sort points in the plane according to their angle to origin. |
angles2d | Description of functions for manipulating angles. |
bisector | BISECTOR Return the bisector of two lines, or 3 points. |
boundingBox | BOUNDINGBOX Bounding box of a set of points. |
boxToPolygon | BOXTOPOLYGON Convert a bounding box to a square polygon. |
boxToRect | BOXTORECT Convert box data to rectangle data. |
boxes2d | BOXES2D Description of functions operating on bounding boxes. |
cartesianLine | CARTESIANLINE Create a straight line from cartesian equation coefficients. |
centeredEdgeToEdge | CENTEREDEDGETOEDGE Convert a centered edge to a two-points edge. |
centroid | CENTROID Compute centroid (center of mass) of a set of points. |
circleArcToPolyline | CIRCLEARCTOPOLYLINE Convert a circle arc into a series of points. |
circleToPolygon | CIRCLETOPOLYGON Convert a circle into a series of points. |
circles2d | CIRCLES2D Description of functions operating on circles. |
circumCenter | CIRCUMCENTER Circumcenter of three points. |
circumCircle | CIRCUMCIRCLE Circumscribed circle of three points. |
clipEdge | CLIPEDGE Clip an edge with a rectangular box. |
clipLine | CLIPLINE Clip a line with a box. |
clipPoints | CLIPPOINTS Clip a set of points by a box. |
clipRay | Clip a ray with a box. |
crackPattern | CRACKPATTERN Create a (bounded) crack pattern tessellation. |
crackPattern2 | CRACKPATTERN2 Create a (bounded) crack pattern tessellation. |
createBasisTransform | CREATEBASISTRANSFORM Compute matrix for transforming a basis into another basis. |
createCircle | CREATECIRCLE Create a circle from 2 or 3 points. |
createDirectedCircle | CREATEDIRECTEDCIRCLE Create a directed circle. |
createEdge | CREATEEDGE Create an edge between two points, or from a line. |
createHomothecy | CREATEHOMOTHECY Create the the 3x3 matrix of an homothetic transform. |
createLine | CREATELINE Create a straight line from 2 points, or from other inputs. |
createLineReflection | CREATELINEREFLECTION Create the the 3x3 matrix of a line reflection. |
createRay | CREATERAY Create a ray (half-line), from various inputs. |
createRotation | CREATEROTATION Create the 3*3 matrix of a rotation. |
createRotation90 | CREATEROTATION90 Matrix of a rotation for 90 degrees multiples. |
createScaling | CREATESCALING Create the 3*3 matrix of a scaling in 2 dimensions. |
createTranslation | CREATETRANSLATION Create the 3*3 matrix of a translation. |
createVector | CREATEVECTOR Create a vector from two points. |
cubicBezierToPolyline | CUBICBEZIERTOPOLYLINE Compute equivalent polyline from bezier curve control. |
distancePointEdge | DISTANCEPOINTEDGE Minimum distance between a point and an edge. |
distancePointLine | DISTANCEPOINTLINE Minimum distance between a point and a line. |
distancePoints | DISTANCEPOINTS Compute distance between two points. |
drawArrow | DRAWARROW Draw an arrow on the current axis. |
drawBezierCurve | DRAWBEZIERCURVE Draw a cubic bezier curve defined by 4 control points. |
drawBox | DRAWBOX Draw a box defined by coordinate extents. |
drawCenteredEdge | DRAWCENTEREDEDGE Draw an edge centered on a point. |
drawCircle | DRAWCIRCLE Draw a circle on the current axis. |
drawCircleArc | DRAWCIRCLEARC Draw a circle arc on the current axis. |
drawEdge | DRAWEDGE Draw an edge given by 2 points. |
drawEllipse | DRAWELLIPSE Draw an ellipse on the current axis. |
drawEllipseArc | DRAWELLIPSEARC Draw an ellipse arc on the current axis. |
drawLabels | Draw labels at specified positions. |
drawLine | DRAWLINE Draw a straight line clipped by the current axis. |
drawOrientedBox | DRAWORIENTEDBOX Draw centered oriented rectangle. |
drawParabola | DRAWPARABOLA Draw a parabola on the current axis. |
drawPoint | DRAWPOINT Draw the point on the axis. |
drawRay | DRAWRAY Draw a ray on the current axis. |
drawRect | DRAWRECT Draw rectangle on the current axis. |
drawShape | DRAWSHAPE Draw various types of shapes (circles, polygons...). |
drawVector | DRAWVECTOR Draw vector at a given position. |
edgeAngle | EDGEANGLE Return angle of edge. |
edgeLength | EDGELENGTH Return length of an edge. |
edgePosition | EDGEPOSITION Return position of a point on an edge. |
edgeToLine | EDGETOLINE Convert an edge to a straight line. |
edgeToPolyline | EDGETOPOLYLINE Convert an edge to a polyline with a given number of segments. |
edges2d | EDGES2D Description of functions operating on planar edges. |
ellipsePerimeter | ELLIPSEPERIMETER Perimeter of an ellipse. |
ellipseToPolygon | ELLIPSETOPOLYGON Convert an ellipse into a series of points. |
ellipses2d | ELLIPSES2D Description of functions operating on ellipses. |
enclosingCircle | ENCLOSINGCIRCLE Find the minimum circle enclosing a set of points. |
equivalentEllipse | Equivalent ellipse of a set of points. |
findClosestPoint | FINDCLOSESTPOINT Find index of closest point in an array. |
fitAffineTransform2d | Compute the affine transform that best register two point sets. |
fitPolynomialTransform2d | FITPOLYNOMIALTRANSFORM2D Coefficients of polynomial transform between two point sets. |
hausdorffDistance | HAUSDORFFDISTANCE Hausdorff distance between two point sets. |
hexagonalGrid | HEXAGONALGRID Generate hexagonal grid of points in the plane. |
inertiaEllipse | INERTIAELLIPSE Inertia ellipse of a set of points. |
intersectBoxes | INTERSECTBOXES Intersection of two bounding boxes. |
intersectCircles | INTERSECTCIRCLES Intersection points of two circles. |
intersectEdges | INTERSECTEDGES Return all intersections between two set of edges. |
intersectLineCircle | Intersection point(s) of a line and a circle. |
intersectLineEdge | INTERSECTLINEEDGE Return intersection between a line and an edge. |
intersectLines | INTERSECTLINES Return all intersection points of N lines in 2D. |
isCounterClockwise | Compute the relative orientation of 3 points. |
isLeftOriented | ISLEFTORIENTED Test if a point is on the left side of a line. |
isParallel | ISPARALLEL Check parallelism of two vectors. |
isPerpendicular | ISPERPENDICULAR Check orthogonality of two vectors. |
isPointInCircle | ISPOINTINCIRCLE Test if a point is located inside a given circle. |
isPointInEllipse | ISPOINTINELLIPSE Check if a point is located inside a given ellipse. |
isPointInTriangle | ISPOINTINTRIANGLE Test if a point is located inside a triangle. |
isPointOnCircle | ISPOINTONCIRCLE Test if a point is located on a given circle. |
isPointOnEdge | ISPOINTONEDGE Test if a point belongs to an edge. |
isPointOnLine | ISPOINTONLINE Test if a point belongs to a line. |
isPointOnRay | ISPOINTONRAY Test if a point belongs to a ray. |
lineAngle | LINEANGLE Computes angle between two straight lines. |
lineFit | LINEFIT Fit a straight line to a set of points. |
linePosition | LINEPOSITION Position of a point on a line. |
lineToEdge | LINETOEDGE Convert a straight line to a finite edge. |
lines2d | LINES2D Description of functions operating on planar lines. |
medianLine | MEDIANLINE Create a median line between two points. |
mergeBoxes | MERGEBOXES Merge two boxes, by computing their greatest extent. |
mergeClosePoints | MERGECLOSEPOINTS Merge points that are closer than a given distance. |
midPoint | MIDPOINT Middle point of two points or of an edge. |
minDistancePoints | Minimal distance between several points. |
nndist | NNDIST Nearest-neighbor distances of each point in a set. |
normalize | NORMALIZE Normalize a vector. |
normalizeAngle | NORMALIZEANGLE Normalize an angle value within a 2*PI interval. |
normalizeVector | NORMALIZEVECTOR Normalize a vector to have norm equal to 1. |
orientedBox | ORIENTEDBOX Minimum-width oriented bounding box of a set of points. |
orientedBoxToPolygon | ORIENTEDBOXTOPOLYGON Convert an oriented box to a polygon (set of vertices). |
orthogonalLine | ORTHOGONALLINE Create a line orthogonal to another one through a point. |
parallelEdge | PARALLELEDGE Edge parallel to another edge. |
parallelLine | PARALLELLINE Create a line parallel to another one. |
pointOnLine | POINTONLINE Create a point on a line at a given position on the line. |
points2d | POINTS2D Description of functions operating on points. |
polarPoint | POLARPOINT Create a point from polar coordinates (rho + theta). |
polynomialTransform2d | POLYNOMIALTRANSFORM2D Apply a polynomial transform to a set of points. |
principalAxes | PRINCIPALAXES Principal axes of a set of ND points. |
principalAxesTransform | Align a set of points along its principal axes. |
projPointOnLine | PROJPOINTONLINE Project of a point orthogonally onto a line. |
radicalAxis | RADICALAXIS Compute the radical axis (or radical line) of 2 circles. |
randomPointInBox | RANDOMPOINTINBOX Generate random point within a box. |
rays2d | RAYS2D Description of functions operating on planar rays. |
rectToBox | RECTTOBOX Convert rectangle data to box data. |
rectToPolygon | RECTTOPOLYGON Convert a rectangle into a polygon (set of vertices). |
registerICP | REGISTERICP Fit affine transform by Iterative Closest Point algorithm. |
reverseEdge | REVERSEEDGE Intervert the source and target vertices of edge. |
reverseLine | REVERSELINE Return same line but with opposite orientation. |
rotateVector | ROTATEVECTOR Rotate a vector by a given angle. |
squareGrid | SQUAREGRID Generate equally spaces points in plane. |
transformEdge | TRANSFORMEDGE Transform an edge with an affine transform. |
transformLine | TRANSFORMLINE Transform a line with an affine transform. |
transformPoint | Apply an affine transform to a point or a point set. |
transformVector | TRANSFORMVECTOR Transform a vector with an affine transform. |
transforms2d | TRANSFORMS2D Description of functions operating on transforms. |
triangleArea | TRIANGLEAREA Signed area of a triangle. |
triangleGrid | TRIANGLEGRID Generate triangular grid of points in the plane. |
vectorAngle | Horizontal angle of a vector, or angle between 2 vectors. |
vectorNorm | Compute norm of a vector, or of a set of vectors. |
vectors2d | VECTORS2D Description of functions operating on plane vectors. |