Constructor and Description |
---|
Box2D(double xmin,
double xmax,
double ymin,
double ymax)
Default constructor of the bounding box, that specifies the bounds along
each dimension.
|
Modifier and Type | Method and Description |
---|---|
double |
area()
Computes the area of this bounding box.
|
double |
getXMax() |
double |
getXMin() |
double |
getYMax() |
double |
getYMin() |
double |
height()
Computes the height of the bounding box, corresponding to the extent
along the Y dimension.
|
double |
width()
Computes the width of the bounding box, corresponding to the extent along
the X dimension.
|
public Box2D(double xmin, double xmax, double ymin, double ymax)
xmin
- the minimum x coordinatexmax
- the maximum x coordinateymin
- the minimum y coordinateymax
- the maximum y coordinatepublic double area()
public double width()
public double height()
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.