Class Sphere1D
java.lang.Object
org.hipparchus.geometry.spherical.oned.Sphere1D
- All Implemented Interfaces:
Serializable
,Space
This class implements a one-dimensional sphere (i.e. a circle).
We use here the topologists definition of the 1-sphere (see Sphere on MathWorld), i.e. the 1-sphere is the one-dimensional closed curve defined in 2D as x2+y2=1.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Specialized exception for inexistent sub-space. -
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Smallest tolerance that can be managed. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkTolerance
(double tolerance) Check tolerance againstSMALLEST_TOLERANCE
.int
Get the dimension of the space.static Sphere1D
Get the unique instance.Get the n-1 dimension subspace of this space.
-
Field Details
-
SMALLEST_TOLERANCE
public static final double SMALLEST_TOLERANCESmallest tolerance that can be managed.Tolerances smaller than this value will generate exceptions.
- Since:
- 1.4
-
-
Method Details
-
getInstance
Get the unique instance.- Returns:
- the unique instance
-
checkTolerance
Check tolerance againstSMALLEST_TOLERANCE
.- Parameters:
tolerance
- tolerance to check- Throws:
MathIllegalArgumentException
- if tolerance is smaller thanSMALLEST_TOLERANCE
-
getDimension
public int getDimension()Get the dimension of the space.- Specified by:
getDimension
in interfaceSpace
- Returns:
- dimension of the space
-
getSubSpace
Get the n-1 dimension subspace of this space.As the 1-dimension sphere does not have proper sub-spaces, this method always throws a
Sphere1D.NoSubSpaceException
- Specified by:
getSubSpace
in interfaceSpace
- Returns:
- nothing
- Throws:
Sphere1D.NoSubSpaceException
- in all cases- See Also:
-