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
A rectangular shape of at least dimension 1.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionlength(ECartesianAxis1D axis) Gets the length of the side along the specified axis.default bytelengthByte(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as a byte.default doublelengthDouble(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as a double.default floatlengthFloat(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as a float.default intlengthInt(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as an int.default longlengthLong(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as a long.default shortlengthShort(ECartesianAxis1D axis) Gets the length of the side along the specified axis, as a short.width()Returns the width of the rectangular shape.default byteReturns the width of the rectangular shape as a byte.default doubleReturns the width of the rectangular shape as a double.default floatReturns the width of the rectangular shape as a float.default intwidthInt()Returns the width of the rectangular shape as an int.default longReturns the width of the rectangular shape as a long.default shortReturns 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
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
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
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
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
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
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
-
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
-