I am working with HTML div element corner based resize in javascript.
Corner b
I don't know if you still need help. But I think you can reach it with Trigonometry (cosinus, sinus and your rotation angle) because your rotation draw a circle.