pointAt function
Returns the point at a given distance and angle from an origin.
Implementation
Point pointAt(Point origin, double distance, double angle) {
return Point(
origin.x + distance * math.cos(angle),
origin.y + distance * math.sin(angle),
);
}