Measured
Toggle table of contents
0.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Measured
Measured
/
io.nacular.measured.units
/
Length
Length
open
class
Length
(
suffix
:
String
,
ratio
:
Double
=
1.0
)
:
Units
(
source
)
Units for length or distance.
Members
Members & Extensions
Constructors
Length
Link copied to clipboard
constructor
(
suffix
:
String
,
ratio
:
Double
=
1.0
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
ratio
Link copied to clipboard
val
ratio
:
Double
suffix
Link copied to clipboard
val
suffix
:
String
Functions
div
Link copied to clipboard
operator
fun
div
(
other
:
Length
)
:
Double
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
times
Link copied to clipboard
operator
fun
Length
.
times
(
mass
:
Mass
)
:
UnitsProduct
<
Mass
,
Length
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String