Angle

csw.params.core.models.Angle
See theAngle companion class
object Angle

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Angle.type

Members list

Type members

Classlikes

used in implicit conversion to support 1.degree, 1.arcMinute etc

used in implicit conversion to support 1.degree, 1.arcMinute etc

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

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.

Value parameters

de2

in radians

withColon

if true format as dd:mm:ss.sss, otherwise XXd XXm XXs

Attributes

Returns

de in string form

calculate great circle distance of two points, coordinates are given in radians

calculate great circle distance of two points, coordinates are given in radians

Attributes

Returns

distance of two points in radians

def max(a1: Angle, a2: Angle): Angle

returns maximal angle from two options

returns maximal angle from two options

Attributes

def min(a1: Angle, a2: Angle): Angle

returns minimal angle from two options

returns minimal angle from two options

Attributes

normalize RA into 0 - 2 * PI range

normalize RA into 0 - 2 * PI range

Attributes

Parse Declination from four values. It uses BigDecimal, so there are no rounding errors

Parse Declination from four values. It uses BigDecimal, so there are no rounding errors

Value parameters

deDegree

declination in degrees

deMin

remaining part in arcminutes

deSec

remaining part in arcseconds

deSign

signum (ie + or -)

Attributes

Returns

declination in microarcseconds

Tries to parse Angle from string. It knows common formats used for Declination

Tries to parse Angle from string. It knows common formats used for Declination

Attributes

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

Value parameters

raHour

ra hours value as String

raMin

ra minutes value as String

raSec

ra seconds value as String

Attributes

Returns

result in microarcseconds

Tries to parse Angle from string. It knows common formats used for Right ascencion (including hours)

Tries to parse Angle from string. It knows common formats used for Right ascencion (including hours)

Attributes

Parses pair of RA and De coordinates. This method should handle formats used in vizier. An example: The following writings are allowed:

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

Attributes

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.

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.

Value parameters

ra

in radians

withColon

if true format as hh:mm:ss.sss, otherwise XXh XXm XXs

Attributes

Returns

ra in string form

def randomDe(): Angle

returns random angle with value between -PI/2 and + PI/2

returns random angle with value between -PI/2 and + PI/2

Attributes

def randomRa(): Angle

returns random angle with value between 0 and 2*PI

returns random angle with value between 0 and 2*PI

Attributes

Concrete fields

val D2H: Double

multiply to convert degrees to archours

multiply to convert degrees to archours

Attributes

val D2M: Int

multiply to convert degrees to arcminute

multiply to convert degrees to arcminute

Attributes

val D2Mas: Int

multiply to convert degrees to milliarcseconds

multiply to convert degrees to milliarcseconds

Attributes

val D2R: Double

multiply to convert degrees to radians

multiply to convert degrees to radians

Attributes

val D2S: Int

multiply to convert degrees to arcsecond

multiply to convert degrees to arcsecond

Attributes

val D2Uas: Long

multiply to convert degrees to microarcseconds

multiply to convert degrees to microarcseconds

Attributes

round circle which marks degrees

round circle which marks degrees

Attributes

val H2D: Double

multiply to convert archour to degrees

multiply to convert archour to degrees

Attributes

val H2Mas: Int

multiply to convert hours to milliarcseconds

multiply to convert hours to milliarcseconds

Attributes

val H2R: Double

multiply to convert hours to radians

multiply to convert hours to radians

Attributes

val H2Uas: Long

multiply to convert hours to microarcseconds

multiply to convert hours to microarcseconds

Attributes

val HMin2Mas: Int

multiply to convert time minutes to milliarcseconds

multiply to convert time minutes to milliarcseconds

Attributes

val HMin2Uas: Long

multiply to convert time minutes to microarcseconds

multiply to convert time minutes to microarcseconds

Attributes

val HSec2Mas: Int

multiply to convert time seconds to milliarcseconds

multiply to convert time seconds to milliarcseconds

Attributes

val HSec2Uas: Long

multiply to convert time seconds to microarcseconds

multiply to convert time seconds to microarcseconds

Attributes

val M2D: Double

multiply to convert arcminute to toDegree

multiply to convert arcminute to toDegree

Attributes

val M2Mas: Int

multiply to convert minutes to milliarcseconds

multiply to convert minutes to milliarcseconds

Attributes

val M2R: Double

multiply to convert minutes to radians

multiply to convert minutes to radians

Attributes

val M2Uas: Long

multiply to convert minutes to microarcseconds

multiply to convert minutes to microarcseconds

Attributes

val Mas2R: Double

multiply to convert milliarcseconds to radians

multiply to convert milliarcseconds to radians

Attributes

val R2D: Double

multiply to convert radians to degrees

multiply to convert radians to degrees

Attributes

val R2H: Double

multiply to convert radians to hours

multiply to convert radians to hours

Attributes

val R2M: Double

multiply to convert radians to minutes

multiply to convert radians to minutes

Attributes

val R2Mas: Double

multiply to convert radians to milliarcseconds

multiply to convert radians to milliarcseconds

Attributes

val R2S: Double

multiply to convert radians to arcseconds

multiply to convert radians to arcseconds

Attributes

val R2Uas: Double

multiply to convert radians to microarcseconds

multiply to convert radians to microarcseconds

Attributes

val S2D: Double

multiply to convert arcsecond to toDegree

multiply to convert arcsecond to toDegree

Attributes

val S2Mas: Int

multiply to convert Seconds to milliarcseconds

multiply to convert Seconds to milliarcseconds

Attributes

val S2R: Double

multiply to convert arcseconds to radians

multiply to convert arcseconds to radians

Attributes

val S2Uas: Long

multiply to convert Seconds to microarcseconds

multiply to convert Seconds to microarcseconds

Attributes

val Uas2D: Double

multiply to convert UAS to degrees

multiply to convert UAS to degrees

Attributes

val Uas2M: Double

multiply to convert UAS to minutes

multiply to convert UAS to minutes

Attributes

val Uas2R: Double

multiply to convert microarcseconds to radians

multiply to convert microarcseconds to radians

Attributes

val Uas2S: Double

multiply to convert UAS to Seconds

multiply to convert UAS to Seconds

Attributes

Implicits

Implicits

implicit def int2angle(d: Int): AngleWrapperDouble