Maximum allowed difference in sides' length (relative to shapes' size), [0, 1].

Namespace:  AForge.Math.Geometry
Assembly:  AForge.Math (in AForge.Math.dll) Version: (


public float LengthError { get; set; }


The values sets maximum allowed difference between two sides' length to treat them as equal. The error value is set relative to shapes size and measured in [0, 1] range, which corresponds to [0%, 100%] range. Absolute length error in pixels is calculated as:

LengthError * ( width + height ) / 2
, where width and height is the size of bounding rectangle for the specified shape.

Default value is set to 0.1 (10%).

See Also