Version: 2022.3

Rect.MinMaxRect

切换到手册
public static Rect MinMaxRect (float xmin, float ymin, float xmax, float ymax);

参数

xmin 最小 X 坐标。
ymin 最小 Y 坐标。
xmax 最大 X 坐标。
ymax 最大 Y 坐标。

返回

Rect 与指定坐标匹配的矩形。

描述

通过最小/最大坐标值创建矩形。