Class Rectangular2DDouble

    • Constructor Detail

      • Rectangular2DDouble

        public Rectangular2DDouble​(double width,
                                   double height)
        Creates a new rectangular shape with the specified width and height.
        Parameters:
        width - The width of the rectangle.
        height - The height of the rectangle.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • length

        public Double length​(ECartesianAxis2D axis)
        Description copied from interface: Rectangular2D
        Gets the length of the side along the specified axis.
        Specified by:
        length in interface Rectangular2D<Double>
        Parameters:
        axis - the axis to get the length along
        Returns:
        the length along the specified axis
      • lengthDouble

        public double lengthDouble​(ECartesianAxis2D axis)
        Description copied from interface: Rectangular2D
        Gets the length of the side along the specified axis as a double.
        Specified by:
        lengthDouble in interface Rectangular2D<Double>
        Parameters:
        axis - the axis to get the length along
        Returns:
        the length along the specified axis
      • lengthDouble

        public double lengthDouble​(ECartesianAxis1D axis)
        Description copied from interface: Rectangular1DLike
        Gets the length of the side along the specified axis, as a double.
        Specified by:
        lengthDouble in interface Rectangular1DLike<Double>
        Parameters:
        axis - the axis to get the length along
        Returns:
        The length along the specified axis
      • plus

        public Rectangular2DDouble plus​(Double deltaWidth,
                                        Double deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(byte deltaWidth,
                                        byte deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(short deltaWidth,
                                        short deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(int deltaWidth,
                                        int deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(long deltaWidth,
                                        long deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(float deltaWidth,
                                        float deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • plus

        public Rectangular2DDouble plus​(double deltaWidth,
                                        double deltaHeight)
        Description copied from interface: Rectangular2D
        Creates a new rectangular shape with the specified delta width and height added to the current width and height.
        Specified by:
        plus in interface Rectangular2D<Double>
        Parameters:
        deltaWidth - the width to add to the current width
        deltaHeight - the height to add to the current height
        Returns:
        A new rectangular shape with the specified dimensions.
      • empty

        public static Rectangular2DDouble empty()
        Creates an empty rectangular shape with zero width and height.
        Returns:
        An empty rectangular shape.