Click or drag to resize

Math2D Class

Drawing2DRelated contains static methods related to mathematics and helper functions for classed from the System.Drawing namespace.
Inheritance Hierarchy
SystemObject
  Altaxo.GeometryMath2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class Math2D

The Math2D type exposes the following members.

Methods
 NameDescription
Public methodStatic memberDistance Calculates the distance between two points.
Public methodStatic memberFloodFill_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.
Public methodStatic memberFloodFill_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.
Public methodStatic memberIsPointIntoDistance(PointD2D, Double, IEnumerablePointD2D) Determines whether or not a given point is into a certain distance of a polyline.
Public methodStatic memberIsPointIntoDistance(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.
Public methodStatic memberPolygonArea 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.
Public methodStatic memberSquareDistanceLineToPoint Calculates the squared distance between a finite line and a point.
Top
See Also