Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.