DJI Mobile SDK Documentation

      class DoubleRect

      class DoubleRect implements DJIValue, JNIProguardKeepTag, ByteStream
      Package:dji.sdk.keyvalue.value.common
      Description:

      Rectangle data

      Class Members:

      Members

      method
      method getX
      Double getX()
      Package:dji.sdk.keyvalue.value.common
      Description:

      Return x-axis data of the coordinates of the upper left corner of the rectangle.

      Return:
      DoubleX axis
      method
      method setX
      void setX(Double x)
      Package:dji.sdk.keyvalue.value.common
      Description:

      To set the x-axis data of the coordinates of the upper left corner of the rectangle.

      Input Parameters:
      Double xX axis of the coordinates of the upper left corner of the rectangle.
      method
      method getY
      Double getY()
      Package:dji.sdk.keyvalue.value.common
      Description:

      Return y-axis data of the coordinates of the upper left corner of the rectangle.

      Return:
      DoubleY axis
      method
      method setY
      void setY(Double y)
      Package:dji.sdk.keyvalue.value.common
      Description:

      To set y-axis data of the coordinates of the upper left corner of the rectangle.

      Input Parameters:
      Double yY axis of the coordinates of the upper left corner of the rectangle.
      method
      method getWidth
      Double getWidth()
      Package:dji.sdk.keyvalue.value.common
      Description:

      Return length data of rectangle.

      Return:
      DoubleRectangle length.
      method
      method setWidth
      void setWidth(Double width)
      Package:dji.sdk.keyvalue.value.common
      Description:

      To set length data of rectangle.

      Input Parameters:
      Double widthRectangle length.
      method
      method getHeight
      Double getHeight()
      Package:dji.sdk.keyvalue.value.common
      Description:

      Return width data of rectangle.

      Return:
      DoubleRectangle width。
      method
      method setHeight
      void setHeight(Double height)
      Package:dji.sdk.keyvalue.value.common
      Description:

      To set width data of rectangle.

      Input Parameters:
      Double heightRectangle width