Companion

object Companion

Functions

Link copied to clipboard
fun kilometersPerHour(value: Double): Speed
fun kilometersPerHour(value: Int): Speed
fun kilometersPerHour(value: Long): Speed

Creates a Speed instance from the given value in kilometers per hour.

Link copied to clipboard
fun metersPerHour(value: Double): Speed
fun metersPerHour(value: Int): Speed
fun metersPerHour(value: Long): Speed

Creates a Speed instance from the given value in meters per hour.

Link copied to clipboard
fun metersPerSecond(value: Double): Speed
fun metersPerSecond(value: Int): Speed
fun metersPerSecond(value: Long): Speed

Creates a Speed instance from the given value in meters per second.

Link copied to clipboard
fun milesPerHour(value: Double): Speed
fun milesPerHour(value: Int): Speed
fun milesPerHour(value: Long): Speed

Creates a Speed instance from the given value in miles per hour.