def getRelative(points, pPrevious):
    """Calculates absolute coordinates by adding the previous point to the
    relative coordinates."""
    newPoints = []
    for p in points:
        newP = p[0] + pPrevious[0], p[1] + pPrevious[1]
        newPoints.append(newP)
    return newPoints
