Class QuadrilateralLocation

    • Constructor Detail

      • QuadrilateralLocation

        public QuadrilateralLocation()
        Initializes the string with length 0.
      • QuadrilateralLocation

        public QuadrilateralLocation​(String s)
        Initializes the object with the string to parse.
        s - the string to parse
      • QuadrilateralLocation

        public QuadrilateralLocation​(georegression.struct.shapes.Quadrilateral_F64 location)
        Initializes the object with the location to use.
        location - the location to use
      • QuadrilateralLocation

        public QuadrilateralLocation​(double x0,
                                     double y0,
                                     double x1,
                                     double y1,
                                     double x2,
                                     double y2,
                                     double x3,
                                     double y3)
        Initializes the object with the string to parse.
        x0 - the x of the first corner
        y0 - the y of the first corner
        x1 - the x of the second corner
        y1 - the y of the second corner
        x2 - the x of the third corner
        y2 - the y of the third corner
        x3 - the x of the fourth corner
        y3 - the y of the fourth corner
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        isValid in class AbstractBaseString
        value - the string value to check
        true if non-null
      • doubleValue

        public double[] doubleValue()
        Returns the location as array (x0, y0, ..., x3, y3).
        the location array
      • quadrilateralValue

        public georegression.struct.shapes.Quadrilateral_F64 quadrilateralValue()
        Returns the quadrilateral location.
        the quadrilateral
      • rectangleValue

        public Rectangle rectangleValue()
        Returns the location as rectangle that the quadrilateral object fits in.
        the rectangle
      • centerValue

        public Point2D centerValue()
        Returns the center of the quadrilateral.
        the center
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        the tool tip