Interface Rectangular2DLike<Numerical extends Number>
- Type Parameters:
Numerical- the type of the width and height
- All Superinterfaces:
Rectangular, Rectangular1D<Numerical>, Rectangular1DLike<Numerical>, Serializable
- All Known Implementing Classes:
Rectangular2DDouble, Rectangular2DLong
A rectangular shape of at least dimension 2.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionheight()Returns the height of the rectangular shape.default byteReturns the height of the rectangular shape as a byte.default doubleReturns the height of the rectangular shape as a double.default floatReturns the height of the rectangular shape as a float.default intReturns the height of the rectangular shape as an int.default longReturns the height of the rectangular shape as a long.default shortReturns the height of the rectangular shape as a short.Methods inherited from interface Rectangular1D
dimensionsMethods inherited from interface Rectangular1DLike
length, lengthByte, lengthDouble, lengthFloat, lengthInt, lengthLong, lengthShort, width, widthByte, widthDouble, widthFloat, widthInt, widthLong, widthShort
-
Method Details
-
height
-
heightByte
default byte heightByte()Returns the height of the rectangular shape as a byte.- Returns:
- the height
-
heightDouble
default double heightDouble()Returns the height of the rectangular shape as a double.- Returns:
- the height
-
heightFloat
default float heightFloat()Returns the height of the rectangular shape as a float.- Returns:
- the height
-
heightInt
default int heightInt()Returns the height of the rectangular shape as an int.- Returns:
- the height
-
heightLong
default long heightLong()Returns the height of the rectangular shape as a long.- Returns:
- the height
-
heightShort
default short heightShort()Returns the height of the rectangular shape as a short.- Returns:
- the height
-