# Class VisionRect

java.lang.Object
com.codename1.ai.vision.VisionRect

public final class VisionRect extends Object
Immutable normalized rectangle using a top-left origin.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final VisionRect`
  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VisionRect(float x, float y, float width, float height)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `float`
  `getHeight()`
  `float`
  `getWidth()`
  `float`
  `getX()`
  `float`
  `getY()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### EMPTY

    public static final VisionRect EMPTY

- ## Constructor Details

  - ### VisionRect

    public VisionRect(float x, float y, float width, float height)

- ## Method Details

  - ### getX

    public float getX()

  - ### getY

    public float getY()

  - ### getWidth

    public float getWidth()

  - ### getHeight

    public float getHeight()