Constructing a square from a point with respect to the direction of the point
问题 I make a square around/below a given point with given width (w) and length (l) like shown below But now I have to induce the direction of the point (or heading so to say). I want to create a rectangle directed towards that direction like shown below. I have never worked with headings before, if anyone can point me in the right directions, that would be helpful. -----------------EDIT--------------- Thank you @MBo & @HansHirse, I implemented as suggested by your people. for simplicity, I chose