Class GalaxyGenerator

java.lang.Object
gaiasky.scene.record.GalaxyGenerator

public class GalaxyGenerator extends Object
Generates galaxies as lists of BillboardDataset objects.
  • Constructor Details

    • GalaxyGenerator

      public GalaxyGenerator()
  • Method Details

    • generateGalaxyName

      public static String generateGalaxyName()
    • generateGalaxy

      public Pair<BillboardDataset[], BillboardDataset[]> generateGalaxy(GalaxyGenerator.GalaxyMorphology gm, long seed)
      Generates galaxies given a morphology.
      Parameters:
      gm - The galaxy morphology.
      seed - The RNG seed.
      Returns:
      A couple of BillboardDataset arrays, the first being the full-resolution channel, and the second being the half-resolution channel.
    • getRandomColors

      public double[] getRandomColors(double[][] colorMatrix)
    • convertToJson

      public com.badlogic.gdx.utils.JsonValue convertToJson(com.badlogic.ashley.core.Entity full, com.badlogic.ashley.core.Entity half)
    • convertToJson

      public com.badlogic.gdx.utils.JsonValue convertToJson(com.badlogic.ashley.core.Entity e)