Class VisionRect
java.lang.Object
com.codename1.ai.vision.VisionRect
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVisionRect(float x, float y, float width, float height) Creates a rectangle in the oriented input image's top-left coordinate space. -
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
VisionRect
public VisionRect(float x, float y, float width, float height) Creates a rectangle in the oriented input image's top-left coordinate space.- Parameters:
x- left coordinatey- top coordinatewidth- non-negative rectangle widthheight- non-negative rectangle height
-
-
Method Details
-
getX
public float getX()- Returns:
- normalized left coordinate
-
getY
public float getY()- Returns:
- normalized top coordinate
-
getWidth
public float getWidth()- Returns:
- width as a fraction of oriented input width
-
getHeight
public float getHeight()- Returns:
- height as a fraction of oriented input height
-