public class BoundingBox extends Object
| Constructor and Description |
|---|
BoundingBox() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getHeight()
检测框区域高度
|
Integer |
getTopLeftX()
检测框左上角到垂直轴距离
|
Integer |
getTopLeftY()
检测框左上角到水平轴距离
|
Integer |
getWidth()
检测框区域宽度
|
int |
hashCode() |
void |
setHeight(Integer height) |
void |
setTopLeftX(Integer topLeftX) |
void |
setTopLeftY(Integer topLeftY) |
void |
setWidth(Integer width) |
String |
toString() |
BoundingBox |
withHeight(Integer height) |
BoundingBox |
withTopLeftX(Integer topLeftX) |
BoundingBox |
withTopLeftY(Integer topLeftY) |
BoundingBox |
withWidth(Integer width) |
public BoundingBox withWidth(Integer width)
public Integer getWidth()
public void setWidth(Integer width)
public BoundingBox withHeight(Integer height)
public Integer getHeight()
public void setHeight(Integer height)
public BoundingBox withTopLeftX(Integer topLeftX)
public Integer getTopLeftX()
public void setTopLeftX(Integer topLeftX)
public BoundingBox withTopLeftY(Integer topLeftY)
public Integer getTopLeftY()
public void setTopLeftY(Integer topLeftY)
Copyright © 2024. All rights reserved.