AngleUnit

org.abh80.nf.core.metrics.AngleUnit
See theAngleUnit companion trait
object AngleUnit

Provides factory methods and case classes for different angle units.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
AngleUnit.type

Members list

Type members

Classlikes

case class ArcMinute(value: Double) extends AngleUnit

Represents an angle in arcminutes.

Represents an angle in arcminutes.

Value parameters

value

the angle value in arcminutes

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AngleUnit
class Object
trait Matchable
class Any
Show all
case object ArcMinute extends AngleUnitCompanion[ArcMinute]

Companion object for ArcMinute, provides conversion from radians.

Companion object for ArcMinute, provides conversion from radians.

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
ArcMinute.type
case class ArcSecond(value: Double) extends AngleUnit

Represents an angle in arcseconds.

Represents an angle in arcseconds.

Value parameters

value

the angle value in arcseconds

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AngleUnit
class Object
trait Matchable
class Any
Show all
case object ArcSecond extends AngleUnitCompanion[ArcSecond]

Companion object for ArcSecond, provides conversion from radians.

Companion object for ArcSecond, provides conversion from radians.

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
ArcSecond.type
implicit class BinOp(self: AngleUnit)

Provides arithmetic and comparison operations for AngleUnit instances.

Provides arithmetic and comparison operations for AngleUnit instances.

Value parameters

self

the AngleUnit instance

Attributes

Supertypes
class Object
trait Matchable
class Any
case class Degree(value: Double) extends AngleUnit

Represents an angle in degrees.

Represents an angle in degrees.

Value parameters

value

the angle value in degrees

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AngleUnit
class Object
trait Matchable
class Any
Show all
case object Degree extends AngleUnitCompanion[Degree]

Companion object for Degree, provides conversion from radians.

Companion object for Degree, provides conversion from radians.

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Degree.type
case class HourAngle(value: Double) extends AngleUnit

Represents an angle in hour angles.

Represents an angle in hour angles.

Value parameters

value

the angle value in hour angles

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AngleUnit
class Object
trait Matchable
class Any
Show all
case object HourAngle extends AngleUnitCompanion[HourAngle]

Companion object for HourAngle, provides conversion from radians.

Companion object for HourAngle, provides conversion from radians.

Attributes

Companion
class
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
HourAngle.type
case class Radian(value: Double) extends AngleUnit

Represents an angle in radians.

Represents an angle in radians.

Value parameters

value

the angle value in radians

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait AngleUnit
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromRadians[T <: AngleUnit](rad: Double, unitFactory: Double => T): T

Creates an angle unit of type T from radians using the provided factory.

Creates an angle unit of type T from radians using the provided factory.

Type parameters

T

the type of AngleUnit

Value parameters

rad

the angle in radians

unitFactory

a function to create an instance of T from a Double

Attributes

Returns

an instance of T

Implicits

Implicits

final implicit def BinOp(self: AngleUnit): BinOp

Provides arithmetic and comparison operations for AngleUnit instances.

Provides arithmetic and comparison operations for AngleUnit instances.

Value parameters

self

the AngleUnit instance

Attributes