Interface Rectangular1DLike<Numerical extends Number>

Type Parameters:
Numerical - the type of the width
All Superinterfaces:
Rectangular, Serializable
All Known Subinterfaces:
Rectangular1D<Numerical>, Rectangular2D<Numerical>, Rectangular2DLike<Numerical>
All Known Implementing Classes:
Rectangular2DDouble, Rectangular2DLong

public interface Rectangular1DLike<Numerical extends Number> extends Rectangular
A rectangular shape of at least dimension 1.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the length of the side along the specified axis.
    default byte
    Gets the length of the side along the specified axis, as a byte.
    default double
    Gets the length of the side along the specified axis, as a double.
    default float
    Gets the length of the side along the specified axis, as a float.
    default int
    Gets the length of the side along the specified axis, as an int.
    default long
    Gets the length of the side along the specified axis, as a long.
    default short
    Gets the length of the side along the specified axis, as a short.
    Returns the width of the rectangular shape.
    default byte
    Returns the width of the rectangular shape as a byte.
    default double
    Returns the width of the rectangular shape as a double.
    default float
    Returns the width of the rectangular shape as a float.
    default int
    Returns the width of the rectangular shape as an int.
    default long
    Returns the width of the rectangular shape as a long.
    default short
    Returns the width of the rectangular shape as a short.

    Methods inherited from interface Rectangular

    dimensions
  • Method Details

    • length

      Gets the length of the side along the specified axis.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthByte

      default byte lengthByte(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as a byte.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthDouble

      default double lengthDouble(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as a double.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthFloat

      default float lengthFloat(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as a float.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthInt

      default int lengthInt(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as an int.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthLong

      default long lengthLong(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as a long.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • lengthShort

      default short lengthShort(ECartesianAxis1D axis)
      Gets the length of the side along the specified axis, as a short.
      Parameters:
      axis - the axis to get the length along
      Returns:
      The length along the specified axis
    • width

      Numerical width()
      Returns the width of the rectangular shape.
      Returns:
      the width
    • widthByte

      default byte widthByte()
      Returns the width of the rectangular shape as a byte.
      Returns:
      the width
    • widthDouble

      default double widthDouble()
      Returns the width of the rectangular shape as a double.
      Returns:
      the width
    • widthFloat

      default float widthFloat()
      Returns the width of the rectangular shape as a float.
      Returns:
      the width
    • widthInt

      default int widthInt()
      Returns the width of the rectangular shape as an int.
      Returns:
      the width
    • widthLong

      default long widthLong()
      Returns the width of the rectangular shape as a long.
      Returns:
      the width
    • widthShort

      default short widthShort()
      Returns the width of the rectangular shape as a short.
      Returns:
      the width