Companion

object Companion

Functions

Link copied to clipboard
fun centimeters(value: Double): Distance
fun centimeters(value: Int): Distance
fun centimeters(value: Long): Distance

Creates a Distance instance from the given value in centimeters.

Link copied to clipboard
fun feet(value: Double): Distance
fun feet(value: Int): Distance
fun feet(value: Long): Distance

Creates a Distance instance from the given value in feet.

Link copied to clipboard
fun inches(value: Double): Distance
fun inches(value: Int): Distance
fun inches(value: Long): Distance

Creates a Distance instance from the given value in inches.

Link copied to clipboard
fun kilometers(value: Double): Distance
fun kilometers(value: Int): Distance
fun kilometers(value: Long): Distance

Creates a Distance instance from the given value in kilometers.

Link copied to clipboard
fun meters(value: Double): Distance
fun meters(value: Int): Distance
fun meters(value: Long): Distance

Creates a Distance instance from the given value in meters.

Link copied to clipboard
fun miles(value: Double): Distance
fun miles(value: Int): Distance
fun miles(value: Long): Distance

Creates a Distance instance from the given value in miles.

Link copied to clipboard
fun millimeters(value: Double): Distance
fun millimeters(value: Int): Distance
fun millimeters(value: Long): Distance

Creates a Distance instance from the given value in millimeters.

Link copied to clipboard
fun yards(value: Double): Distance
fun yards(value: Int): Distance
fun yards(value: Long): Distance

Creates a Distance instance from the given value in yards.