radiansTo method

double radiansTo(
  1. Mappoint other
)

Calculates the angle in radians from this point to the other point.

The angle is measured counter-clockwise from the positive x-axis.

Implementation

double radiansTo(Mappoint other) {
  return atan2(other.y - y, other.x - x);
}