polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {
  const rads = degreesToRadians(angleInDegrees);
  return {
    x: centerX + radius * Math.cos(rads),
    y: centerY + radius * Math.sin(rads),
  };
}
Convert polar coordinates to cartesian coordinates.

@param {number} centerX Center x coordinate.
@param {number} centerY Center y coordinate.
@param {number} radius Radius of the circle.
@param {number} angleInDegrees Angle in degrees.
@returns {{x: number, y: number}} Cartesian coordinates.