Distance

data class Distance : Quantity<Distance>

A quantity of distance or length

Author

BeepBot99

Parameters

value

the distance in millimeters

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:JvmName(name = "abs")
val abs: Distance
Link copied to clipboard

The value of the distance in centimeters

Link copied to clipboard

The value of the distance in feet

Link copied to clipboard

The value of the distance in inches

Link copied to clipboard

The value of the distance in meters

Link copied to clipboard

The value of the distance in millimeters

Link copied to clipboard

The value of the distance in yards

Link copied to clipboard
val sign: Int
Link copied to clipboard
open override val value: Double

Functions

Link copied to clipboard
operator fun compareTo(other: Distance): Int
Link copied to clipboard
operator fun div(other: Distance): Double
operator fun div(scalar: Double): Distance
operator fun div(scalar: Int): Distance
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun isNaN(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun minus(other: Distance): Distance
Link copied to clipboard
open override fun newInstance(value: Double): Distance

Creates a new instance of Distance with the given value

Link copied to clipboard
operator fun plus(other: Distance): Distance
Link copied to clipboard
operator fun rem(other: Distance): Distance
operator fun rem(divisor: Double): Distance
operator fun rem(divisor: Int): Distance
Link copied to clipboard
operator fun times(other: Distance): Distance
operator fun times(scalar: Double): Distance
operator fun times(scalar: Int): Distance
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): Distance
Link copied to clipboard
operator fun unaryPlus(): Distance