
**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
com.aspose.threed.Struct, java.io.Serializable
```
public final class Rect implements Struct<Rect>, Serializable
```

A class to represent the rectangle
## Constructors

| Constructor | Description |
| --- | --- |
| [Rect(int x, int y, int width, int height)](#Rect-int-int-int-int-) | Constructor of class [Rect](../../com.aspose.threed/rect) |
| [Rect()](#Rect--) |  |
## Methods

| Method | Description |
| --- | --- |
| [clone()](#clone--) |  |
| [contains(int x, int y)](#contains-int-int-) | Return true if the given point is inside the rectangle. |
| [copyFrom(Rect src)](#copyFrom-com.aspose.threed.Rect-) |  |
| [equals(Object obj)](#equals-java.lang.Object-) |  |
| [getBottom()](#getBottom--) | Gets the bottom of the rectangle |
| [getClass()](#getClass--) |  |
| [getHeight()](#getHeight--) | Gets the height of the size |
| [getLeft()](#getLeft--) | Gets the left of the rectangle |
| [getRight()](#getRight--) | Gets the right of the rectangle |
| [getTop()](#getTop--) | Gets the top of the rectangle |
| [getWidth()](#getWidth--) | Gets the width of the size |
| [getX()](#getX--) | Gets the x of the size |
| [getY()](#getY--) | Gets the y of the size |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setHeight(int value)](#setHeight-int-) | Sets the height of the size |
| [setWidth(int value)](#setWidth-int-) | Sets the width of the size |
| [setX(int value)](#setX-int-) | Sets the x of the size |
| [setY(int value)](#setY-int-) | Sets the y of the size |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Rect(int x, int y, int width, int height) {#Rect-int-int-int-int-}
```
public Rect(int x, int y, int width, int height)
```


Constructor of class [Rect](../../com.aspose.threed/rect)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| x | int |  |
| y | int |  |
| width | int |  |
| height | int |  |

### Rect() {#Rect--}
```
public Rect()
```


### clone() {#clone--}
```
public Rect clone()
```


Clone current instance

**Returns:**
[Rect](../../com.aspose.threed/rect)
### contains(int x, int y) {#contains-int-int-}
```
public boolean contains(int x, int y)
```


Return true if the given point is inside the rectangle.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| x | int |  |
| y | int |  |

**Returns:**
boolean
### copyFrom(Rect src) {#copyFrom-com.aspose.threed.Rect-}
```
public void copyFrom(Rect src)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| src | [Rect](../../com.aspose.threed/rect) |  |

### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object |  |

**Returns:**
boolean
### getBottom() {#getBottom--}
```
public int getBottom()
```


Gets the bottom of the rectangle

**Returns:**
int - the bottom of the rectangle
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getHeight() {#getHeight--}
```
public int getHeight()
```


Gets the height of the size

**Returns:**
int - the height of the size
### getLeft() {#getLeft--}
```
public int getLeft()
```


Gets the left of the rectangle

**Returns:**
int - the left of the rectangle
### getRight() {#getRight--}
```
public int getRight()
```


Gets the right of the rectangle

**Returns:**
int - the right of the rectangle
### getTop() {#getTop--}
```
public int getTop()
```


Gets the top of the rectangle

**Returns:**
int - the top of the rectangle
### getWidth() {#getWidth--}
```
public int getWidth()
```


Gets the width of the size

**Returns:**
int - the width of the size
### getX() {#getX--}
```
public int getX()
```


Gets the x of the size

**Returns:**
int - the x of the size
### getY() {#getY--}
```
public int getY()
```


Gets the y of the size

**Returns:**
int - the y of the size
### hashCode() {#hashCode--}
```
public int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setHeight(int value) {#setHeight-int-}
```
public void setHeight(int value)
```


Sets the height of the size

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | New value |

### setWidth(int value) {#setWidth-int-}
```
public void setWidth(int value)
```


Sets the width of the size

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | New value |

### setX(int value) {#setX-int-}
```
public void setX(int value)
```


Sets the x of the size

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | New value |

### setY(int value) {#setY-int-}
```
public void setY(int value)
```


Sets the y of the size

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | New value |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

