Interface Spatial
- All Known Implementing Classes:
EuclideanVector, MultiDimensionalEuclideanVector, Point1S, Point2S, PolarCoordinates, SphericalCoordinates, Vector1D, Vector1D.Unit, Vector2D, Vector2D.Unit, Vector3D, Vector3D.Unit
public interface Spatial
Interface representing a generic element in a mathematical space.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of dimensions in the space that this element belongs to.booleanisFinite()Returns true if all values in this element are finite, meaning they are not NaN or infinite.booleanReturns true if any value in this element is infinite and none are NaN; otherwise, returns false.booleanisNaN()Returns true if any value in this element is NaN; otherwise returns false.
-
Method Details
-
getDimension
int getDimension()Returns the number of dimensions in the space that this element belongs to.- Returns:
- the number of dimensions in the element's space
-
isNaN
boolean isNaN()Returns true if any value in this element is NaN; otherwise returns false.- Returns:
- true if any value in this element is NaN
-
isInfinite
boolean isInfinite()Returns true if any value in this element is infinite and none are NaN; otherwise, returns false.- Returns:
- true if any value in this element is infinite and none are NaN
-
isFinite
boolean isFinite()Returns true if all values in this element are finite, meaning they are not NaN or infinite.- Returns:
- true if all values in this element are finite
-