Click or drag to resize

Math2D Class

Contains static methods related to mathematics and helper functions for 2D classes from the Altaxo.Geometry namespace.
Inheritance Hierarchy
SystemObject
  Altaxo.GeometryMath2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.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 within a specified distance of a polyline.
Public methodStatic memberIsPointIntoDistance(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.
Public methodStatic memberPolygonArea 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.
Public methodStatic memberSquareDistanceLineToPoint Calculates the squared distance between a finite line and a point.
Top
See Also