RectD 结构
Represents a rectangle defined by X/Y coordinates, width and height (double precision)
表示由X/Y坐标、宽度和高度定义的双精度矩形结构
命名空间: DeploySharp.Data程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
public struct RectD : IEquatable<RectD>
- Inheritance
- Object ValueType RectD
- Implements
- IEquatableRectD
Provides geometric operations for rectangle manipulation including intersection,
union, containment checks, and arithmetic operations with points/sizes.
提供矩形几何操作,包括相交、并集、包含检查以及与点/大小的算术运算
Bottom |
Gets the y-coordinate of the bottom edge (read-only)
获取底部边缘的Y坐标(只读)
|
BottomRight |
Gets the coordinates of the bottom-right corner (read-only)
获取右下角的坐标(只读)
|
Left |
Gets or sets the x-coordinate of the left edge
获取或设置左侧边缘的X坐标
|
Location |
Gets or sets the location of the upper-left corner
获取或设置左上角的位置
|
Right |
Gets the x-coordinate of the right edge (read-only)
获取右侧边缘的X坐标(只读)
|
Size |
Gets or sets the size of the rectangle
获取或设置矩形的大小
|
Top |
Gets or sets the y-coordinate of the top edge
获取或设置顶部边缘的Y坐标
|
TopLeft |
Gets the coordinates of the upper-left corner (read-only)
获取左上角的坐标(只读)
|
Add |
Translates rectangle by specified point
通过指定点平移矩形
|
Contains(PointD) |
Determines if the specified point is contained within this rectangle
确定指定点是否包含在此矩形内
|
Contains(RectD) |
Determines if the specified rectangle is entirely contained within this rectangle
确定指定矩形是否完全包含在此矩形内
|
Contains(Double, Double) |
Determines if the specified point is contained within this rectangle
确定指定点是否包含在此矩形内
|
Equals |
Determines if two rectangles are equal
确定两个矩形是否相等
|
FromLTRB | |
GetType | Gets the Type of the current instance. (继承自 Object。) |
Inflate(SizeD) |
Expands or shrinks the rectangle by the specified size
按指定大小扩展或收缩矩形
|
Inflate(Double, Double) |
Expands or shrinks the rectangle by the specified amount
按指定数量扩展或收缩矩形
|
Inflate(Rect, Int32, Int32) |
Expands the specified Rect by the given amounts
按给定数量扩展指定的Rect
|
Intersect(RectD) |
Computes the intersection between this rectangle and another
计算此矩形与另一个矩形的交集
|
Intersect(RectD, RectD) |
Computes the intersection of two rectangles
计算两个矩形的交集
|
IntersectsWith |
Determines if this rectangle intersects with another rectangle
确定此矩形是否与另一个矩形相交
|
Subtract |
Translates rectangle inversely by specified point
通过指定点反向平移矩形
|
ToRect |
Converts the RectD to a Rect by truncating coordinates
通过截断坐标将RectD转换为Rect
|
ToString |
Returns a string representation of the rectangle
返回矩形的字符串表示形式
(重写 ValueTypeToString) |
Union(RectD) |
Computes the union between this rectangle and another
计算此矩形与另一个矩形的并集
|
Union(RectD, RectD) |
Computes the union of two rectangles
计算两个矩形的并集
|
Height |
Height of the rectangle
矩形的高度
|
Width |
Width of the rectangle
矩形的宽度
|
X |
X coordinate of the rectangle's origin point
矩形原点X坐标
|
Y |
Y coordinate of the rectangle's origin point
矩形原点Y坐标
|