BoundingRectangle Class
Contents
[
Hide
]Summary:
Module: aspose.gis.common
Full Name: aspose.gis.common.BoundingRectangle
Aspose.PSD Version: 25.9.0
Constructors
| Name | Description |
|---|---|
| BoundingRectangle() | Initializes a new instance of the BoundingRectangle class |
| BoundingRectangle(x_min, y_min, x_max, y_max) | Initializes a new instance of the BoundingRectangle class |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| area | double | r | |
| center | Coordinate | r | |
| has_values | bool | r | |
| height | double | r | |
| max_coordinate | Coordinate | r | |
| min_coordinate | Coordinate | r | |
| width | double | r | |
| x_max | double | r/w | |
| x_min | double | r/w | |
| y_max | double | r/w | |
| y_min | double | r/w |
Methods
| Name | Description |
|---|---|
| clone() | Creates a new object that is a copy of the current instance. |
| contains(c) | |
| contains(other) | |
| contains(x, y) | |
| contains_x(x) | |
| contains_y(y) | |
| distance(coordinate) | |
| distance(other) | |
| distance(x, y) | |
| grow(c) | |
| grow(other) | |
| grow(x, y) | |
| grow_x(x) | |
| grow_y(y) | |
| intersection(other) | |
| intersects(other) | |
| squared_distance(c) | |
| squared_distance(other) | |
| squared_distance(x, y) |
Constructor: BoundingRectangle()
BoundingRectangle()
Initializes a new instance of the BoundingRectangle class
Constructor: BoundingRectangle(x_min, y_min, x_max, y_max)
BoundingRectangle(x_min, y_min, x_max, y_max)
Initializes a new instance of the BoundingRectangle class
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x_min | double | |
| y_min | double | |
| x_max | double | |
| y_max | double |
Method: clone()
clone()
Creates a new object that is a copy of the current instance.
Returns
| Type | Description |
|---|---|
| BoundingRectangle |
Method: contains(c)
contains(c)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| c | Coordinate |
Returns
| Type | Description |
|---|---|
| bool |
Method: contains(other)
contains(other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | BoundingRectangle |
Returns
| Type | Description |
|---|---|
| bool |
Method: contains(x, y)
contains(x, y)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | double | |
| y | double |
Returns
| Type | Description |
|---|---|
| bool |
Method: contains_x(x)
contains_x(x)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | double |
Returns
| Type | Description |
|---|---|
| bool |
Method: contains_y(y)
contains_y(y)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| y | double |
Returns
| Type | Description |
|---|---|
| bool |
Method: distance(coordinate)
distance(coordinate)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| coordinate | Coordinate |
Returns
| Type | Description |
|---|---|
| double |
Method: distance(other)
distance(other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | BoundingRectangle |
Returns
| Type | Description |
|---|---|
| double |
Method: distance(x, y)
distance(x, y)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | double | |
| y | double |
Returns
| Type | Description |
|---|---|
| double |
Method: intersection(other)
intersection(other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | BoundingRectangle |
Returns
| Type | Description |
|---|---|
| BoundingRectangle |
Method: intersects(other)
intersects(other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | BoundingRectangle |
Returns
| Type | Description |
|---|---|
| bool |
Method: squared_distance(c)
squared_distance(c)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| c | Coordinate |
Returns
| Type | Description |
|---|---|
| double |
Method: squared_distance(other)
squared_distance(other)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | BoundingRectangle |
Returns
| Type | Description |
|---|---|
| double |
Method: squared_distance(x, y)
squared_distance(x, y)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | double | |
| y | double |
Returns
| Type | Description |
|---|---|
| double |