Distance

value class Distance(value: Double) : Comparable<Distance>

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: Distance): Int
Link copied to clipboard
operator fun div(distance: Distance): Double
operator fun div(scale: Double): Distance
Link copied to clipboard
operator fun minus(distance: Distance): Distance
Link copied to clipboard
operator fun plus(distance: Distance): Distance
Link copied to clipboard
operator fun times(scale: Double): Distance
Link copied to clipboard
fun toDouble(unit: DistanceUnit): Double
Link copied to clipboard
fun toFloat(unit: DistanceUnit): Float
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): Distance

Properties

Link copied to clipboard
val inFeet: Double
Link copied to clipboard
val inKilometres: Double
Link copied to clipboard
val inMeters: Double
Link copied to clipboard
val inMiles: Double
Link copied to clipboard
val inYards: Double