Angle

csw.params.core.models.Angle
See theAngle companion object
case class Angle(uas: Long) extends Serializable, Ordered[Angle]

An wrapper for angle. Normally angle would be stored in double as radians, but this introduces rounding errors. This class stores value in microarcseconds to prevent rounding errors.

Usage examples: //import provides implicit conversions for numbers import Angle._ //use implicit conversions to construct angle from number val angle = 10.degree + 0.5.arcSec //convert value to radian an print it println(11.toRadian)

Attributes

Companion
object
Graph
Supertypes
trait Product
trait Equals
trait Ordered[Angle]
trait Comparable[Angle]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(a2: Double): Angle
def *(a2: Int): Angle
def +(a2: Angle): Angle
def -(a2: Angle): Angle
def /(a2: Double): Angle
def /(a2: Int): Angle
override def compare(that: Angle): Int

Attributes

Definition Classes

returns Angle with value normalized between 0 to 2*PI

returns Angle with value normalized between 0 to 2*PI

Attributes

def to(maxVal: Angle, increment: Angle): Seq[Angle]

Returns sequence of angles with given max value and increment

Returns sequence of angles with given max value and increment

Attributes

returns angle value in arcseconds

returns angle value in arcseconds

Attributes

returns angle value in degrees

returns angle value in degrees

Attributes

def toMas: Double

returns angle value in milliarcseconds

returns angle value in milliarcseconds

Attributes

returns angle value in radians

returns angle value in radians

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def unary_+: Angle
def unary_-: Angle
def until(maxVal: Angle, increment: Angle): Seq[Angle]

Returns sequence of angles with given max value and increment

Returns sequence of angles with given max value and increment

Attributes

Inherited methods

def <(that: Angle): Boolean

Attributes

Inherited from:
Ordered
def <=(that: Angle): Boolean

Attributes

Inherited from:
Ordered
def >(that: Angle): Boolean

Attributes

Inherited from:
Ordered
def >=(that: Angle): Boolean

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product