Distance
A quantity describing a distance. (For example, 10 kilometers.)
Important: This is a Public Preview API. It may be changed or removed at any time.
Types
Functions
Returns a new instance with the value from this
divided by divisor.
Expresses the distance's value in centimeters.
Expresses the distance's value in kilometers.
Expresses the distance's value in millimeters.
Expresses the distance's value in centimeters rounded down.
Expresses the distance's value in feet rounded down.
Expresses the distance's value in inches rounded down.
Expresses the distance's value in kilometers rounded down.
Expresses the distance's value in meters rounded down.
Expresses the distance's value in miles rounded down.
Expresses the distance's value in millimeters rounded down.
Expresses the distance's value in yards rounded down.
Returns a new instance with the value from this
multiplied by factor.
Returns a string representation for the value from this
with the given unit. Depending on decimalsMode, it will show either exactly or at most decimals amount of decimals after the separator. The unit will be suffixed depending on suffixMode.
Returns a new instance with the value from this
as negative.