getPosition static method

void getPosition(
  1. MPPointF center,
  2. double dist,
  3. double angle,
  4. MPPointF outputPoint,
)

Implementation

static void getPosition(
    MPPointF center, double dist, double angle, MPPointF outputPoint) {
  outputPoint.x = (center.x + dist * cos((angle / 180 * pi)));
  outputPoint.y = (center.y + dist * sin((angle / 180 * pi)));
}