Geometry Problem
I'm in the robotics club at my school and am trying to design a function. I have a rectangle with the bottom left vertex at the origin with a length, width, and the angle between the bottom edge and the x-axis. How would I find the co-ordinates of each vertex of the rectange?
EDIT: Solved, I just needed to remember basic trig.
(0,0) (w cos a, w sin a) (w cos(a) - l cos(90-a), w sin(a) + l sin(90-a)) (l cos(90-a), l sin(90-a))
Posted Dec 4, 2025, 2:46 AM UTC
11