object Angle extends Serializable
- Alphabetic
- By Inheritance
- Angle
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class AngleWrapperDouble extends AnyRef
used in implicit conversion to support
1.degree
,1.arcMinute
etc
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val CIRCLE: Long
- Attributes
- protected[models]
- val D2H: Double
multiply to convert degrees to archours
- val D2M: Int
multiply to convert degrees to arcminute
- val D2Mas: Int
multiply to convert degrees to milliarcseconds
- val D2R: Double
multiply to convert degrees to radians
- val D2S: Int
multiply to convert degrees to arcsecond
- val D2Uas: Long
multiply to convert degrees to microarcseconds
- val DEGREE_SIGN: Char
round circle which marks degrees
- val H2D: Double
multiply to convert archour to degrees
- val H2Mas: Int
multiply to convert hours to milliarcseconds
- val H2R: Double
multiply to convert hours to radians
- val H2Uas: Long
multiply to convert hours to microarcseconds
- val HMin2Mas: Int
multiply to convert time minutes to milliarcseconds
- val HMin2Uas: Long
multiply to convert time minutes to microarcseconds
- val HSec2Mas: Int
multiply to convert time seconds to milliarcseconds
- val HSec2Uas: Long
multiply to convert time seconds to microarcseconds
- val M2D: Double
multiply to convert arcminute to toDegree
- val M2Mas: Int
multiply to convert minutes to milliarcseconds
- val M2R: Double
multiply to convert minutes to radians
- val M2Uas: Long
multiply to convert minutes to microarcseconds
- val Mas2R: Double
multiply to convert milliarcseconds to radians
- val R2D: Double
multiply to convert radians to degrees
- val R2H: Double
multiply to convert radians to hours
- val R2M: Double
multiply to convert radians to minutes
- val R2Mas: Double
multiply to convert radians to milliarcseconds
- val R2S: Double
multiply to convert radians to arcseconds
- val R2Uas: Double
multiply to convert radians to microarcseconds
- val S2D: Double
multiply to convert arcsecond to toDegree
- val S2Mas: Int
multiply to convert Seconds to milliarcseconds
- val S2R: Double
multiply to convert arcseconds to radians
- val S2Uas: Long
multiply to convert Seconds to microarcseconds
- val Uas2D: Double
multiply to convert UAS to degrees
- val Uas2M: Double
multiply to convert UAS to minutes
- val Uas2R: Double
multiply to convert microarcseconds to radians
- val Uas2S: Double
multiply to convert UAS to Seconds
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertDe(de: Double): Unit
- def assertRa(ra: Double): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def deToString(de2: Double, withColon: Boolean = true): String
Converts DE to a string in the format 01:02:03.333 (or '1d 2m 3.333s)' Minutes and seconds are auto added as needed.
Converts DE to a string in the format 01:02:03.333 (or '1d 2m 3.333s)' Minutes and seconds are auto added as needed.
- de2
in radians
- withColon
if true format as dd:mm:ss.sss, otherwise XXd XXm XXs
- returns
de in string form
- def distance(ra1: Double, de1: Double, ra2: Double, de2: Double): Double
calculate great circle distance of two points, coordinates are given in radians
calculate great circle distance of two points, coordinates are given in radians
- returns
distance of two points in radians
- implicit def double2angle(d: Double): AngleWrapperDouble
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- implicit def int2angle(d: Int): AngleWrapperDouble
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def long2angle(d: Long): AngleWrapperDouble
- def max(a1: Angle, a2: Angle): Angle
returns maximal angle from two options
- def min(a1: Angle, a2: Angle): Angle
returns minimal angle from two options
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalizeRa(ra2: Double): Double
normalize RA into 0 - 2 * PI range
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def parseDe(de: String): Angle
Tries to parse Angle from string.
Tries to parse Angle from string. It knows common formats used for Declination
- def parseDe(deSign: String, deDegree: String, deMin: String, deSec: String): Angle
Parse Declination from four values.
Parse Declination from four values. It uses BigDecimal, so there are no rounding errors
- deSign
signum (ie + or -)
- deDegree
declination in degrees
- deMin
remaining part in arcminutes
- deSec
remaining part in arcseconds
- returns
declination in microarcseconds
- def parseRa(ra: String): Angle
Tries to parse Angle from string.
Tries to parse Angle from string. It knows common formats used for Right ascencion (including hours)
- def parseRa(raHour: String, raMin: String, raSec: String): Angle
parse Right ascencion from triple values raHour raMin, raSec This method uses big decimal, so there are no rounding errors
parse Right ascencion from triple values raHour raMin, raSec This method uses big decimal, so there are no rounding errors
- raHour
ra hours value as String
- raMin
ra minutes value as String
- raSec
ra seconds value as String
- returns
result in microarcseconds
- def parseRaDe(str: String): (Angle, Angle)
Parses pair of RA and De coordinates.
Parses pair of RA and De coordinates. This method should handle formats used in vizier. An example: The following writings are allowed:
20 54 05.689 +37 01 17.38, 10:12:45.3-45:17:50, 15h17m-11d10m, 15h17+89d15, 275d11m15.6954s+17d59m59.876s 12.34567h-17.87654d, 350.123456d-17.33333d <=> 350.123456 -17.33333
- def raToString(ra: Double, withColon: Boolean = true): String
Converts RA to a string in the format 01:02:03.333 (or '1h 2m 3.33s').
Converts RA to a string in the format 01:02:03.333 (or '1h 2m 3.33s'). Minutes and seconds are auto added as needed.
- ra
in radians
- withColon
if true format as hh:mm:ss.sss, otherwise XXh XXm XXs
- returns
ra in string form
- def randomDe(): Angle
returns random angle with value between -PI/2 and + PI/2
- def randomRa(): Angle
returns random angle with value between 0 and 2*PI
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])