import math


def polar_to_points(r, theta):
    """convert polar form of a line to two point representation"""
    x1 = r * math.sin(theta)
    y1 = r * math.cos(theta)
    x2 = x1 + math.cos(theta)
    y2 = y1 - math.sin(theta)
    return x1, y1, x2, y2