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 Numericallength(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.Numericalwidth()Returns the width of the rectangular shape.default bytewidthByte()Returns the width of the rectangular shape as a byte.default doublewidthDouble()Returns the width of the rectangular shape as a double.default floatwidthFloat()Returns the width of the rectangular shape as a float.default intwidthInt()Returns the width of the rectangular shape as an int.default longwidthLong()Returns the width of the rectangular shape as a long.default shortwidthShort()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
-
-