AngleUnitCompanion

org.abh80.nf.core.metrics.AngleUnitCompanion
sealed trait AngleUnitCompanion[T <: AngleUnit]

Companion trait for angle units, providing a method to create an instance from radians.

Type parameters

T

the type of AngleUnit

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ArcMinute
object ArcSecond
object Degree
object HourAngle

Members list

Value members

Abstract methods

def fromRadians(radians: Double): T

Creates an instance of the angle unit from radians.

Creates an instance of the angle unit from radians.

Value parameters

radians

the angle in radians

Attributes

Returns

an instance of the angle unit