movePointByAngle static method
Implementation
static Vector2 movePointByAngle(
Vector2 point,
double speed,
double angle,
) {
double nextX = speed * cos(angle);
double nextY = speed * sin(angle);
return Vector2(point.x + nextX, point.y + nextY);
}