public struct RotatedRect : IEquatable<RotatedRect>
Stores rotation information and provides methods to calculate rotated corners and bounding boxes. Rotation is performed clockwise around the center point.
存储旋转信息并提供计算旋转角和边界框的方法。 旋转围绕中心点顺时针进行。
var rect = new RotatedRect(new PointF(100, 100), new SizeF(200, 100), 45);
PointF[] corners = rect.Points();
Rect boundingBox = rect.BoundingRect();
RotatedRect | Initializes a new rotated rectangle 初始化一个新的旋转矩形 |
BoundingRect | Calculates the axis-aligned bounding rectangle that encompasses the rotated rectangle 计算包含旋转矩形的最小轴对齐边界矩形 |
FromAxisAlignedRect | Creates a rotated rectangle from an axis-aligned rectangle 从轴对齐矩形创建旋转矩形 |
GetType | Gets the Type of the current instance. (继承自 Object。) |
Points | Computes the four corner points of the rotated rectangle 计算旋转矩形的四个角点 |
ToString |
Returns a formatted string representation of the rotated rectangle
返回旋转矩形的格式化字符串表示
(重写 ValueTypeToString) |
Angle | The rotation angle in degrees 旋转角度(以度为单位) |
Center | The center point of the rectangle 矩形的中心点 |
Size | The dimensions (width and height) of the rectangle 矩形的尺寸(宽度和高度) |