public class Sphere2D extends Object implements Serializable, Space
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.
Modifier and Type | Field and Description |
---|---|
static double |
SMALLEST_TOLERANCE
Smallest tolerance that can be managed.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkTolerance(double tolerance)
Check tolerance against
SMALLEST_TOLERANCE . |
int |
getDimension()
Get the dimension of the space.
|
static Sphere2D |
getInstance()
Get the unique instance.
|
Sphere1D |
getSubSpace()
Get the n-1 dimension subspace of this space.
|
public static final double SMALLEST_TOLERANCE
Tolerances smaller than this value will generate exceptions.
public static Sphere2D getInstance()
public static void checkTolerance(double tolerance) throws MathIllegalArgumentException
SMALLEST_TOLERANCE
.tolerance
- tolerance to checkMathIllegalArgumentException
- if tolerance is smaller
than SMALLEST_TOLERANCE
public int getDimension()
getDimension
in interface Space
public Sphere1D getSubSpace()
getSubSpace
in interface Space
Space.getDimension()
Copyright © 2016-2022 CS GROUP. All rights reserved.