Method FromCenterSizeAngle
FromCenterSizeAngle(double, double, double, double, double)
Creates a quadrilateral by specifying its center, size, and rotation angle.
public static Quadrilateral FromCenterSizeAngle(double centerX, double centerY, double width, double height, double angleDegrees)
Parameters
centerXdoubleThe X-coordinate of the rectangle's center.
centerYdoubleThe Y-coordinate of the rectangle's center.
widthdoubleThe rectangle width.
heightdoubleThe rectangle height.
angleDegreesdoubleClockwise rotation angle in degrees.
Returns
- Quadrilateral
A new Quadrilateral representing the rotated rectangle.