miter (n.2)
in the carpentry sense of "joint at a 45 degree angle," 1670s, perhaps from mitre, via notion of joining of the two peaks of the folded cap. As a verb from 1731.
miter (n.1)
alternative spelling of mitre (see -re).