Package gaiasky.util.gaia.utils
Class ComplexArea
- java.lang.Object
-
- gaiasky.util.gaia.utils.ComplexArea
-
-
Constructor Summary
Constructors Constructor Description ComplexArea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Area a)doublealtitude(Place spinAxisPlace)Determine the minimum angle between a great circle and the Area boundarybooleancontains(Place p)Determine whether a given Place is within the Areajava.util.Collection<Area>getListOfAreas()PlacegetMidPoint()Determine the weighted mid-point of the Areajava.lang.StringgetName()Get the name of the areaPlacegetRandomPlace(java.util.Random rnd)Get a random Place within the ComplexAreadoublegetSquareDegrees()doublegetWeight()Determine the weight of the AreavoidsetName(java.lang.String str)Set the name of the area
-
-
-
Method Detail
-
add
public void add(Area a)
-
altitude
public double altitude(Place spinAxisPlace)
Description copied from interface:AreaDetermine the minimum angle between a great circle and the Area boundary
-
contains
public boolean contains(Place p)
Description copied from interface:AreaDetermine whether a given Place is within the Area
-
getMidPoint
public Place getMidPoint()
Description copied from interface:AreaDetermine the weighted mid-point of the Area- Specified by:
getMidPointin interfaceArea- Returns:
- the centre
-
getWeight
public double getWeight()
Description copied from interface:AreaDetermine the weight of the Area
-
getRandomPlace
public Place getRandomPlace(java.util.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 java.util.Collection<Area> getListOfAreas()
- Returns:
- the listOfAreas
-
setName
public void setName(java.lang.String str)
Set the name of the area- Parameters:
str- The string
-
getName
public java.lang.String getName()
Get the name of the area- Returns:
- The name
-
-