Package de.xima.fc.common.geometry
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
public interface Rectangular2DLike<Numerical extends Number> extends Rectangular1D<Numerical>
A rectangular shape of at least dimension 2.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Numericalheight()Returns the height of the rectangular shape.default byteheightByte()Returns the height of the rectangular shape as a byte.default doubleheightDouble()Returns the height of the rectangular shape as a double.default floatheightFloat()Returns the height of the rectangular shape as a float.default intheightInt()Returns the height of the rectangular shape as an int.default longheightLong()Returns the height of the rectangular shape as a long.default shortheightShort()Returns the height of the rectangular shape as a short.-
Methods inherited from interface de.xima.fc.common.geometry.Rectangular1D
dimensions
-
Methods inherited from interface de.xima.fc.common.geometry.Rectangular1DLike
length, lengthByte, lengthDouble, lengthFloat, lengthInt, lengthLong, lengthShort, width, widthByte, widthDouble, widthFloat, widthInt, widthLong, widthShort
-
-
-
-
Method Detail
-
height
Numerical height()
Returns the height of the rectangular shape.- Returns:
- the 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
-
-