Companion

object Companion

Properties

Link copied to clipboard

Returns the default class for calculating sunrise and sunset. This is currently the NOAACalculator, but this may change.

Link copied to clipboard
const val DEGREES_TO_RADIANS: Double = 0.017453292519943295

Constant by which to multiply an angular value in degrees to obtain an angular value in radians.

Link copied to clipboard
const val RADIANS_TO_DEGREES: Double = 57.29577951308232

Constant by which to multiply an angular value in radians to obtain an angular value in degrees.

Functions

Link copied to clipboard
fun toDegrees(angrad: Double): Double

Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect cos(toRadians(90.0)) to exactly equal 0.0.

Link copied to clipboard
fun toRadians(angdeg: Double): Double

Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.