> I was to have done my homework yesterday.
I thought it could mean I was supposed to have finished it before yesterday.
But, apparently, it means I was supposed to do it yesterday. So it's equivalent to
I was to do my homework yesterday.
So what is the point of the perfect infinitive in the first sentence?
Maybe they're basically the same, but the first one bears the suggestion that I didn't do my homework yesterday.