Class Rectangular2DLong

    • Constructor Detail

      • Rectangular2DLong

        public Rectangular2DLong​(long width,
                                 long 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 Long length​(ECartesianAxis2D axis)
        Description copied from interface: Rectangular2D
        Gets the length of the side along the specified axis.
        Specified by:
        length in interface Rectangular2D<Long>
        Parameters:
        axis - the axis to get the length along
        Returns:
        the length along the specified axis
      • length

        public Long length​(ECartesianAxis1D axis)
        Description copied from interface: Rectangular1DLike
        Gets the length of the side along the specified axis.
        Specified by:
        length in interface Rectangular1DLike<Long>
        Parameters:
        axis - the axis to get the length along
        Returns:
        The length along the specified axis
      • lengthLong

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

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

        public Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong 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<Long>
        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 Rectangular2DLong empty()
        Creates an empty rectangular shape with zero width and height.
        Returns:
        An empty rectangular shape.