Module powerboxesrs::rotation

source ·

Structs§

  • Represents a 2D line in the form Ax + By + C = 0, where A, B, and C are coefficients.
  • A simple 2D point structure with x and y coordinates.

Functions§

  • Converts a bounding box specified by its center (cx, cy), width (w), height (h), and rotation angle (r in degrees) to the coordinates of its four corner points. The rotation is applied around the center of the bounding box.
  • Calculates the area of intersection between two rectangles represented by Rect structs.