Record Class CircleArea
java.lang.Object
java.lang.Record
gaiasky.util.gaia.utils.CircleArea
- All Implemented Interfaces:
Area
-
Constructor Summary
ConstructorsConstructorDescriptionCircleArea(Place centre, double radius) 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 boundarycentre()Returns the value of thecentrerecord component.booleanDetermine whether a given Place is within the Areafinal booleanIndicates whether some other object is "equal to" this one.Determine the weighted mid-point of the AreadoubledoubleDetermine the weight of the Areafinal inthashCode()Returns a hash code value for this object.doubleradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CircleArea
Creates an instance of a CircleArea about a given centre and radius.- Parameters:
centre- the centreradius- the radius [rad]
-
-
Method Details
-
altitude
-
contains
-
getMidPoint
Description copied from interface:AreaDetermine the weighted mid-point of the Area- Specified by:
getMidPointin interfaceArea- Returns:
- the centre
-
getWeight
-
centre
Returns the value of thecentrerecord component.- Returns:
- the value of the
centrerecord component
-
radius
public double radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
getSquareDegrees
public double getSquareDegrees()- Returns:
- the solid angle [deg^2]
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.
-