BoundingRectangle Class

Summary:

Module: aspose.gis.common

Full Name: aspose.gis.common.BoundingRectangle

Aspose.PSD Version: 25.9.0

Constructors

NameDescription
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

NameTypeAccessDescription
areadoubler
centerCoordinater
has_valuesboolr
heightdoubler
max_coordinateCoordinater
min_coordinateCoordinater
widthdoubler
x_maxdoubler/w
x_mindoubler/w
y_maxdoubler/w
y_mindoubler/w

Methods

NameDescription
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:

ParameterTypeDescription
x_mindouble
y_mindouble
x_maxdouble
y_maxdouble

Method: clone()

 clone() 

Creates a new object that is a copy of the current instance.

Returns

TypeDescription
BoundingRectangle

Method: contains(c)

 contains(c) 

Parameters:

ParameterTypeDescription
cCoordinate

Returns

TypeDescription
bool

Method: contains(other)

 contains(other) 

Parameters:

ParameterTypeDescription
otherBoundingRectangle

Returns

TypeDescription
bool

Method: contains(x, y)

 contains(x, y) 

Parameters:

ParameterTypeDescription
xdouble
ydouble

Returns

TypeDescription
bool

Method: contains_x(x)

 contains_x(x) 

Parameters:

ParameterTypeDescription
xdouble

Returns

TypeDescription
bool

Method: contains_y(y)

 contains_y(y) 

Parameters:

ParameterTypeDescription
ydouble

Returns

TypeDescription
bool

Method: distance(coordinate)

 distance(coordinate) 

Parameters:

ParameterTypeDescription
coordinateCoordinate

Returns

TypeDescription
double

Method: distance(other)

 distance(other) 

Parameters:

ParameterTypeDescription
otherBoundingRectangle

Returns

TypeDescription
double

Method: distance(x, y)

 distance(x, y) 

Parameters:

ParameterTypeDescription
xdouble
ydouble

Returns

TypeDescription
double

Method: intersection(other)

 intersection(other) 

Parameters:

ParameterTypeDescription
otherBoundingRectangle

Returns

TypeDescription
BoundingRectangle

Method: intersects(other)

 intersects(other) 

Parameters:

ParameterTypeDescription
otherBoundingRectangle

Returns

TypeDescription
bool

Method: squared_distance(c)

 squared_distance(c) 

Parameters:

ParameterTypeDescription
cCoordinate

Returns

TypeDescription
double

Method: squared_distance(other)

 squared_distance(other) 

Parameters:

ParameterTypeDescription
otherBoundingRectangle

Returns

TypeDescription
double

Method: squared_distance(x, y)

 squared_distance(x, y) 

Parameters:

ParameterTypeDescription
xdouble
ydouble

Returns

TypeDescription
double