case class Angle(uas: Long) extends Serializable with Ordered[Angle] with Product
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)
- Alphabetic
- By Inheritance
- Angle
- Product
- Equals
- Ordered
- Comparable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(a2: Int): Angle
- def *(a2: Double): Angle
- def +(a2: Angle): Angle
- def -(a2: Angle): Angle
- def /(a2: Int): Angle
- def /(a2: Double): Angle
- def <(that: Angle): Boolean
- Definition Classes
- Ordered
- def <=(that: Angle): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: Angle): Boolean
- Definition Classes
- Ordered
- def >=(that: Angle): Boolean
- Definition Classes
- Ordered
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def compare(that: Angle): Int
- Definition Classes
- Angle → Ordered
- def compareTo(that: Angle): Int
- Definition Classes
- Ordered → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalizedRa: Angle
returns Angle with value normalized between 0 to 2*PI
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def to(maxVal: Angle, increment: Angle): Seq[Angle]
Returns sequence of angles with given max value and increment
- def toArcSec: Double
returns angle value in arcseconds
- def toDegree: Double
returns angle value in degrees
- def toMas: Double
returns angle value in milliarcseconds
- def toRadian: Double
returns angle value in radians
- def toString(): String
- Definition Classes
- Angle → AnyRef → Any
- val uas: Long
- def unary_+: Angle
- def unary_-: Angle
- def until(maxVal: Angle, increment: Angle): Seq[Angle]
Returns sequence of angles with given max value and increment
- 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])