Class SphereFactory
- java.lang.Object
-
- org.scilab.forge.scirenderer.utils.shapes.geometry.SphereFactory
-
public final class SphereFactory extends java.lang.Object
- Author:
- Pierre Lando
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
create(Canvas canvas, java.lang.Float radius, int givenLatitude, int givenLongitude)
Create a sphere geometry with classic longitude / latitude division.static SphereFactory
getSingleton()
-
-
-
Method Detail
-
getSingleton
public static SphereFactory getSingleton()
-
create
public Geometry create(Canvas canvas, java.lang.Float radius, int givenLatitude, int givenLongitude)
Create a sphere geometry with classic longitude / latitude division.- Parameters:
canvas
- the canvas where the geometry will be created.radius
- the sphere radius.givenLatitude
- number of division in latitude.givenLongitude
- number of division in longitude.- Returns:
- a sphere geometry with classic longitude / latitude division.
-
-