C# Class Zandmotor.Controls.Plot.MathFunctions

ファイルを表示 Open project: TNOCS/csTouch

Public Methods

Method Description
CalculateDifference ( List p1, List p2 ) : double
DouglasPeuckerReduction ( List points, Double tolerance ) : List

Uses the Douglas Peucker algorithm to reduce the number of points.

PerpendicularDistance ( Point point1, Point point2, Point point ) : Double

The distance of a point from a line made from point1 and point2.

Private Methods

Method Description
DouglasPeuckerReduction ( List points, Int32 firstPoint, Int32 lastPoint, Double tolerance, List &pointIndexsToKeep ) : void

Douglases the peucker reduction.

Method Details

CalculateDifference() public method

public CalculateDifference ( List p1, List p2 ) : double
p1 List
p2 List
return double

DouglasPeuckerReduction() public method

Uses the Douglas Peucker algorithm to reduce the number of points.
public DouglasPeuckerReduction ( List points, Double tolerance ) : List
points List The points.
tolerance Double The tolerance.
return List

PerpendicularDistance() public method

The distance of a point from a line made from point1 and point2.
public PerpendicularDistance ( Point point1, Point point2, Point point ) : Double
point1 Point
point2 Point
point Point
return Double