Ruler to square

I needed a set square and had a ruler.