Package gaiasky.util.gaia.utils
Class ComplexArea
java.lang.Object
gaiasky.util.gaia.utils.ComplexArea
- All Implemented Interfaces:
Area
Specifies a combination of
Areas.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoubleDetermine the minimum angle between a great circle and the Area boundarybooleanDetermine whether a given Place is within the AreaDetermine the weighted mid-point of the AreagetName()Get the name of the areagetRandomPlace(Random rnd) Get a random Place within the ComplexAreadoubledoubleDetermine the weight of the AreavoidSet the name of the area
-
Constructor Details
-
ComplexArea
public ComplexArea()
-
-
Method Details
-
add
-
altitude
Description copied from interface:AreaDetermine the minimum angle between a great circle and the Area boundary -
contains
Description copied from interface:AreaDetermine whether a given Place is within the Area -
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
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
- Returns:
- the listOfAreas
-
getName
Get the name of the area- Returns:
- The name
-
setName
Set the name of the area- Parameters:
str- The string
-