getAngliness function

double getAngliness(
  1. double x0,
  2. double y0,
  3. double x1,
  4. double y1,
)

Get a normal value representing how close two points are from being at a 45 degree angle.

Implementation

double getAngliness(double x0, double y0, double x1, double y1) =>
    ((x1 - x0) / 2 / ((y1 - y0) / 2)).abs();