RectDBitwiseOr 运算符
Computes the union of two rectangles using | operator
使用 | 运算符计算两个矩形的并集
命名空间: DeploySharp.Data程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
public static RectD operator |(
RectD a,
RectD b
)
- a RectD
- First rectangle/第一个矩形
- b RectD
- Second rectangle/第二个矩形
RectD
The smallest rectangle that contains both rectangles
包含两个矩形的最小矩形
var rect1 = new RectD(0, 0, 100, 100);
var rect2 = new RectD(150, 150, 100, 100);
var union = rect1 | rect2; // RectD(0, 0, 250, 250)