Abstract
Graphical element that visually encapsulates a rectangle.
Calculates the border's bounding box for an origin-centered rectangle of the given size.
Returns a point on the border in the given direction.
The angle can be converted to a direction vector by taking cos(angle) and sin(angle) to be its x and y respectively.
cos(angle)
sin(angle)
x
y
Draws the border within the previously calculated bounding box.
Graphical element that visually encapsulates a rectangle.