Class Sphere2D
java.lang.Object
org.hipparchus.geometry.spherical.twod.Sphere2D
- All Implemented Interfaces:
Serializable,Space
This class implements a two-dimensional sphere (i.e. the regular sphere).
We use here the topologists definition of the 2-sphere (see Sphere on MathWorld), i.e. the 2-sphere is the two-dimensional surface defined in 3D as x2+y2+z2=1.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleSmallest tolerance that can be managed. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckTolerance(double tolerance) Check tolerance againstSMALLEST_TOLERANCE.intGet the dimension of the space.static Sphere2DGet 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:
getDimensionin interfaceSpace- Returns:
- dimension of the space
-
getSubSpace
Get the n-1 dimension subspace of this space.- Specified by:
getSubSpacein interfaceSpace- Returns:
- n-1 dimension sub-space of this space
- See Also:
-