Contains static methods related to mathematics and helper functions for 2D classes from the Altaxo.Geometry namespace.
Inheritance Hierarchy Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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 within a specified distance of a polyline.
|
  | IsPointIntoDistance(PointD2D, Double, PointD2D, PointD2D) |
Determines whether or not a given point is within a specified distance to a finite line, that is spanned between two points.
|
  | PolygonArea |
Calculates the area of a closed polygon. The polygon points are given in points.
The result is positive if, in a Cartesian 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.
|
Top
See Also