public final class SphereFactory
extends java.lang.Object
Modifier and Type | Method and 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() |
public static SphereFactory getSingleton()
public Geometry create(Canvas canvas, java.lang.Float radius, int givenLatitude, int givenLongitude)
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.