Length
class Length : Comparable
Represents a unit of length. Supported units: meters, kilometers, miles, inches and feet.
Summary
Public companion functions |
|
|---|---|
Length |
Creates |
Length |
Creates |
Length |
kilometers(value: Double)Creates |
Length |
Creates |
Length |
Creates |
Public properties |
|
|---|---|
Double |
Returns the length in feet. |
Double |
Returns the length in inches. |
Double |
Returns the length in kilometers. |
Double |
Returns the length in meters. |
Double |
Returns the length in miles. |
Public companion functions
feet
fun feet(value: Double): Length
Creates Length with the specified value in feet.
inches
fun inches(value: Double): Length
Creates Length with the specified value in inches.
kilometers
fun kilometers(value: Double): Length
Creates Length with the specified value in kilometers.