Class CircleArea

java.lang.Object
gaiasky.util.gaia.utils.CircleArea
All Implemented Interfaces:
Area

public class CircleArea extends Object implements Area
  • Constructor Details Link icon

    • CircleArea Link icon

      public CircleArea(Place c, double r)
      Creates an instance of a CircleArea about a given centre and radius.
      Parameters:
      c - the centre
      r - the radius [rad]
  • Method Details Link icon

    • altitude Link icon

      public double altitude(Place pole)
      Description copied from interface: Area
      Determine the minimum angle between a great circle and the Area boundary
      Specified by:
      altitude in interface Area
      Parameters:
      pole - great circle pole given as a Place
      Returns:
      minimum angle [rad]
    • contains Link icon

      public boolean contains(Place p)
      Description copied from interface: Area
      Determine whether a given Place is within the Area
      Specified by:
      contains in interface Area
      Parameters:
      p - the Place
      Returns:
      true if p is within the Area
    • getMidPoint Link icon

      public Place getMidPoint()
      Description copied from interface: Area
      Determine the weighted mid-point of the Area
      Specified by:
      getMidPoint in interface Area
      Returns:
      the centre
    • getWeight Link icon

      public double getWeight()
      Description copied from interface: Area
      Determine the weight of the Area
      Specified by:
      getWeight in interface Area
      Returns:
      the weight
    • getCentre Link icon

      public Place getCentre()
      Returns:
      the centre
    • getRadius Link icon

      public double getRadius()
      Returns:
      the radius
    • getSquareDegrees Link icon

      public double getSquareDegrees()
      Returns:
      the solid angle [deg^2]