polar static method

Point polar(
  1. double l,
  2. double r
)

Implementation

static Point polar(double l, double r) {
  return Point(l * math.cos(r), l * math.sin(r));
}