Package gaiasky.util.gaia.utils
Class CircleArea
java.lang.Object
gaiasky.util.gaia.utils.CircleArea
- All Implemented Interfaces:
Area
A circular area about a centre c (which is defined by a
Place
object), and radius r.-
Constructor Summary
ConstructorsConstructorDescriptionCircleArea(Place c, double r) Creates an instance of a CircleArea about a given centre and radius. -
Method Summary
Modifier and TypeMethodDescriptiondoubleDetermine 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 AreadoubledoubledoubleDetermine the weight of the Area
-
Constructor Details
-
CircleArea
Creates an instance of a CircleArea about a given centre and radius.- Parameters:
c- the centrer- the radius [rad]
-
-
Method Details
-
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 -
getCentre
- Returns:
- the centre
-
getRadius
public double getRadius()- Returns:
- the radius
-
getSquareDegrees
public double getSquareDegrees()- Returns:
- the solid angle [deg^2]
-