Package de.xima.fc.common.geometry
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
public interface Rectangular1DLike<Numerical extends Number> extends Rectangular
A rectangular shape of at least dimension 1.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Numerical
length(ECartesianAxis1D axis)
Gets the length of the side along the specified axis.default byte
lengthByte(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as a byte.default double
lengthDouble(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as a double.default float
lengthFloat(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as a float.default int
lengthInt(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as an int.default long
lengthLong(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as a long.default short
lengthShort(ECartesianAxis1D axis)
Gets the length of the side along the specified axis, as a short.Numerical
width()
Returns the width of the rectangular shape.default byte
widthByte()
Returns the width of the rectangular shape as a byte.default double
widthDouble()
Returns the width of the rectangular shape as a double.default float
widthFloat()
Returns the width of the rectangular shape as a float.default int
widthInt()
Returns the width of the rectangular shape as an int.default long
widthLong()
Returns the width of the rectangular shape as a long.default short
widthShort()
Returns the width of the rectangular shape as a short.-
Methods inherited from interface de.xima.fc.common.geometry.Rectangular
dimensions
-
-
-
-
Method Detail
-
length
Numerical length(ECartesianAxis1D axis)
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
-
-