Package gaiasky.util.gaia.utils
Class ComplexArea
java.lang.Object
gaiasky.util.gaia.utils.ComplexArea
- All Implemented Interfaces:
Area
public class ComplexArea extends java.lang.Object implements Area
Specifies a combination of
Area
s.-
Constructor Summary
Constructors Constructor Description ComplexArea()
-
Method Summary
Modifier and Type Method Description void
add(Area a)
double
altitude(Place spinAxisPlace)
Determine the minimum angle between a great circle and the Area boundaryboolean
contains(Place p)
Determine whether a given Place is within the Areajava.util.Collection<Area>
getListOfAreas()
Place
getMidPoint()
Determine the weighted mid-point of the Areajava.lang.String
getName()
Get the name of the areaPlace
getRandomPlace(java.util.Random rnd)
Get a random Place within the ComplexAreadouble
getSquareDegrees()
double
getWeight()
Determine the weight of the Areavoid
setName(java.lang.String str)
Set the name of the areaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ComplexArea
public ComplexArea()
-
-
Method Details
-
add
-
altitude
Description copied from interface:Area
Determine the minimum angle between a great circle and the Area boundary -
contains
Description copied from interface:Area
Determine whether a given Place is within the Area -
getMidPoint
Description copied from interface:Area
Determine the weighted mid-point of the Area- Specified by:
getMidPoint
in interfaceArea
- Returns:
- the centre
-
getWeight
public double getWeight()Description copied from interface:Area
Determine 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
-
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
-