public class BoundingBox extends Object
Constructor and Description |
---|
BoundingBox() |
BoundingBox(BoundingBox box) |
BoundingBox(int x,
int y,
int width,
int height) |
BoundingBox(Point center,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
addBoundingbox(BoundingBox box) |
void |
addPoint(Point location) |
BoundingBox |
computeWithAspectRatio(double R) |
boolean |
equals(Object obj) |
String |
fragment() |
Point |
getCenter() |
int |
getHeight() |
int |
getWidth() |
int |
getX() |
int |
getY() |
int |
hashCode() |
void |
setCenter(Point center) |
String |
toString() |
public BoundingBox()
public BoundingBox(BoundingBox box)
public BoundingBox(int x, int y, int width, int height)
public BoundingBox(Point center, int width, int height)
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public void addPoint(Point location)
public Point getCenter()
public void setCenter(Point center)
public BoundingBox computeWithAspectRatio(double R)
public String fragment()
public void addBoundingbox(BoundingBox box)
Copyright © 2021. All rights reserved.