import math


def polar_coordinates_to_cartesian(distance, relative_angle):
    """Computes relative x and y for give distance and angle.
    Can be used to convert radar measurements to relative position."""
    # Here +ve x is towards the left but the angle is +ve clockwise.
    return [-1 * distance * math.sin(relative_angle), distance * math.cos(relative_angle)]