Package gaiasky.util.gaia.utils
Class CircleArea
- java.lang.Object
-
- gaiasky.util.gaia.utils.CircleArea
-
-
Constructor Summary
Constructors Constructor Description CircleArea(Place c, double r)Creates an instance of a CircleArea about a given centre and radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublealtitude(Place pole)Determine the minimum angle between a great circle and the Area boundarybooleancontains(Place p)Determine whether a given Place is within the AreaPlacegetCentre()PlacegetMidPoint()Determine the weighted mid-point of the AreadoublegetRadius()doublegetSquareDegrees()doublegetWeight()Determine the weight of the Area
-
-
-
Constructor Detail
-
CircleArea
public CircleArea(Place c, double r)
Creates an instance of a CircleArea about a given centre and radius.- Parameters:
c- the centrer- the radius [rad]
-
-
Method Detail
-
altitude
public double altitude(Place pole)
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
-
getCentre
public Place getCentre()
- Returns:
- the centre
-
getRadius
public double getRadius()
- Returns:
- the radius
-
getSquareDegrees
public double getSquareDegrees()
- Returns:
- the solid angle [deg^2]
-
-