Table of Contents

Method NearlyEquals

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

NearlyEquals(Point, Point, double)

Determines whether two points are equal within a specified tolerance.

public static bool NearlyEquals(Point a, Point b, double epsilon = 1E-09)

Parameters

a Point

First point.

b Point

Second point.

epsilon double

The inclusive tolerance to apply to both coordinates.

Returns

bool

true if |a.X - b.X| ≤ ε and |a.Y - b.Y| ≤ ε; otherwise, false.