In general, sphere can be defined as a round 3D object with every point on its surface equidistant from its centre. A sphere can be seen as a Circle created in a 3 dimensional plane where every coordinate contains an extra dimension Z.
The examples of Sphere in the real world are globe, ball, etc. In JavaFX, Sphere is represented by the class javafx.scene.shape.Sphere. We just need to instantiate this class in order to create the sphere. A sphere is shown in the following image.
The properties of the class along with their setter methods are described in the following table.
There are the three constructors