8.8.4. Boxes
8.8.4.矩形
Boxes are represented by pairs of points that are opposite corners of the box. Values of type
box
are
specified using any of the following syntaxes:
矩形由矩形对角的两个点表示。box类型的值使用如下语法指定:
( ( x1 , y1 ) , ( x2 , y2 ) )
( x1 , y1 ) , ( x2 , y2 )
x1 , y1 , x2 , y2
where
(
x1
,
y1
)
and
(
x2
,
y2
)
are any two opposite corners of the box.
(x1,y1)和(x2,y2)为矩形的两个对角。
Boxes are output using the second syntax.
矩形在输出时使用第二中语法。
Any two opposite corners can be supplied on input, but the values will be reordered as needed to store
the upper right and lower left corners, in that order.
输入时可以是任意对角,但在存储时会重新排序,然后以右上左下的顺序存储。