angleDegrees static method

double angleDegrees(
  1. Offset point1,
  2. Offset point2
)

Calculates the angle between two points in degrees.

point1 is the first point. point2 is the second point.

Implementation

static double angleDegrees(Offset point1, Offset point2) {
  return angle(point1, point2) * 180 / math.pi;
}