Class ComplexArea

java.lang.Object
gaiasky.util.gaia.utils.ComplexArea
All Implemented Interfaces:
Area

public class ComplexArea extends Object implements Area
  • Constructor Details

    • ComplexArea

      public ComplexArea()
  • Method Details

    • add

      public void add(Area a)
    • altitude

      public double altitude(Place spinAxisPlace)
      Description copied from interface: Area
      Determine the minimum angle between a great circle and the Area boundary
      Specified by:
      altitude in interface Area
      Parameters:
      spinAxisPlace - great circle pole given as a Place
      Returns:
      minimum angle [rad]
    • contains

      public boolean contains(Place p)
      Description copied from interface: Area
      Determine whether a given Place is within the Area
      Specified by:
      contains in interface Area
      Parameters:
      p - the Place
      Returns:
      true if p is within the Area
    • getMidPoint

      public Place getMidPoint()
      Description copied from interface: Area
      Determine the weighted mid-point of the Area
      Specified by:
      getMidPoint in interface Area
      Returns:
      the centre
    • getWeight

      public double getWeight()
      Description copied from interface: Area
      Determine the weight of the Area
      Specified by:
      getWeight in interface Area
      Returns:
      the weight
    • getRandomPlace

      public Place getRandomPlace(Random rnd)
      Get a random Place within the ComplexArea
      Parameters:
      rnd - Random number generator
      Returns:
      random Place
    • getSquareDegrees

      public double getSquareDegrees()
      Returns:
      the solid angle [deg^2]
    • getListOfAreas

      public Collection<Area> getListOfAreas()
      Returns:
      the listOfAreas
    • getName

      public String getName()
      Get the name of the area
      Returns:
      The name
    • setName

      public void setName(String str)
      Set the name of the area
      Parameters:
      str - The string