# Class: Rect

## Rect()

#### new Rect()

Source:
  - Rect.js, line 8

### Methods

#### (async, static) createObj() → {Promise.<Rect>}

构造一个新的 Rect 对象。可通过无参构造和有参构造 有参参数，参数为xMin, yMin, xMax, yMax，均为Number类型

Source:
  - Rect.js, line 19

##### Returns:

Type
  Promise.<Rect>

#### (async, static) getXMax() → {Promise.<*>}

获取x最大值

Source:
  - Rect.js, line 80

##### Returns:

Type
  Promise.<*>

#### (async, static) getXMin() → {Promise.<*>}

获取x最小值

Source:
  - Rect.js, line 52

##### Returns:

Type
  Promise.<*>

#### (async, static) getYMax() → {Promise.<*>}

获取y最大值

Source:
  - Rect.js, line 94

##### Returns:

Type
  Promise.<*>

#### (async, static) getYMin() → {Promise.<*>}

获取y最小值

Source:
  - Rect.js, line 66

##### Returns:

Type
  Promise.<*>

#### (static) isValid(rect) → {boolean}

判断Rect对象是否有效或是否有用

##### Parameters:

Name | Type | Description
--- | --- | ---
`rect` | Rect |

Source:
  - Rect.js, line 111

##### Returns:

true：有效；false：无效

Type
  boolean