Drawing2DRelated contains static methods related to mathematics and helper
functions for classed from the System.Drawing namespace.
Inheritance Hierarchy Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static class Math2D
The Math2D type exposes the following members.
Methods | Name | Description |
---|
| Distance |
Calculates the distance between two points.
|
| FloodFill_4Neighbour(Int32, Int32, FuncInt32, Int32, Boolean, ActionInt32, Int32, FuncInt32, Int32, Boolean) |
A very general flood fill algorithm (4-Neighbour algorithm).
It tests iteratively the 4 neighbouring pixels.
|
| FloodFill_4Neighbour(Int32, Int32, FuncInt32, Int32, Boolean, ActionInt32, Int32, Int32, Int32, Int32, Int32) |
A very general flood fill algorithm (4-Neighbour algorithm).
It tests iteratively the 4 neighbouring pixels.
|
| IsPointIntoDistance(PointD2D, Double, IEnumerablePointD2D) |
Determines whether or not a given point is into a certain distance of a polyline.
|
| IsPointIntoDistance(PointD2D, Double, PointD2D, PointD2D) |
Determines whether or not a given point (point) is into a distance to a finite line, that is spanned between
two points lineOrg and lineEnd.
|
| PolygonArea |
Calculates the area of a closed polygons. The polygon points are given in points.
The result is positive if, in a cartesic coordinate system with x to the right and y to the top, the polygon points are circulating counterclockwise around the enclosed area.
Otherwise, the result is negative.
|
| SquareDistanceLineToPoint |
Calculates the squared distance between a finite line and a point.
|
TopSee Also