rotate method

Point<double> rotate(
  1. double angle
)

Rotate (about 0,0)

Implementation

Point<double> rotate(double angle) =>
    Point(x * cos(angle) - y * sin(angle), x * sin(angle) + y * cos(angle));