DJI Mobile SDK Documentation

      class OpenDoubleRect

      class OpenDoubleRect implements Parcelable 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Recognition box area.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getX
      double getX() 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Gets the horizontal position of the rectangle center point (percentage coordinate). Value range: 0.0 (left edge) to 1.0 (right edge). Example: 0.5 indicates the horizontal center of the view.

      Supported since MSDK 5.20.1

      Return:
      doubleThe horizontal position percentage of the center point.
      method
      method setX
      void setX(double x) 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Sets the horizontal position of the rectangle center point (percentage coordinate). Value range: 0.0 (left edge) to 1.0 (right edge). Example: 0.5 indicates the horizontal center of the view.

      Supported since MSDK 5.20.1

      Input Parameters:
      double xThe horizontal position percentage of the center point.
      method
      method getY
      double getY() 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Gets the vertical position of the rectangle center point (percentage coordinate). Value range: 0.0 (top edge) to 1.0 (bottom edge). Example: 0.5 indicates the vertical center of the view.

      Supported since MSDK 5.20.1

      Return:
      doubleThe vertical position percentage of the center point.
      method
      method setY
      void setY(double y) 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Sets the vertical position of the rectangle center point (percentage coordinate). Value range: 0.0 (top edge) to 1.0 (bottom edge). Example: 0.5 indicates the vertical center of the view.

      Supported since MSDK 5.20.1

      Input Parameters:
      double yThe vertical position percentage of the center point.
      method
      method getWidth
      double getWidth() 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Gets the rectangle width (percentage relative to the view width). Value range: 0.0 (invisible) to 1.0 (full-screen width). Example: 0.8 indicates the width occupies 80% of the screen.

      Supported since MSDK 5.20.1

      Return:
      doubleThe rectangle width percentage.
      method
      method setWidth
      void setWidth(double width) 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Sets the rectangle width (percentage relative to the view width). Value range: 0.0 (invisible) to 1.0 (full-screen width). Example: 0.8 indicates the width occupies 80% of the screen.

      Supported since MSDK 5.20.1

      Input Parameters:
      double widthThe rectangle width percentage.
      method
      method getHeight
      double getHeight() 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Gets the rectangle height (percentage relative to the view height). Value range: 0.0 (invisible) to 1.0 (full-screen height). Example: 0.6 indicates the height occupies 60% of the screen.

      Supported since MSDK 5.20.1

      Return:
      doubleThe rectangle height percentage.
      method
      method setHeight
      void setHeight(double height) 
      Package:dji.open.pilot.base.manager.intelligent
      Description:

      Sets the rectangle height (percentage relative to the view height). Value range: 0.0 (invisible) to 1.0 (full-screen height). Example: 0.6 indicates the height occupies 60% of the screen.

      Supported since MSDK 5.20.1

      Input Parameters:
      double heightThe rectangle height percentage.