Class Sphere2D

  • All Implemented Interfaces:
    Serializable, Space

    public class Sphere2D
    extends Object
    implements 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.

    Since:
    3.3
    See Also:
    Serialized Form
    • Method Detail

      • getInstance

        public static Sphere2D getInstance()
        Get the unique instance.
        Returns:
        the unique instance
      • getDimension

        public int getDimension()
        Get the dimension of the space.
        Specified by:
        getDimension in interface Space
        Returns:
        dimension of the space