Package-level declarations

Kotlin DSL extensions for ergonomic unit construction and conversion, including extension properties on numeric types (e.g., 5.meters, 45.degrees) and utilities for collections and trigonometry.

Properties

Link copied to clipboard

Creates an Area from a scalar value in acres.

Link copied to clipboard

Creates a Rotation from a scalar value in arc minutes.

Link copied to clipboard

Creates a Rotation from a scalar value in arc seconds.

Link copied to clipboard

Creates an Area from a scalar value in ares.

Link copied to clipboard

Creates a Length from a scalar value in cables.

Link copied to clipboard

Creates an Area from a scalar value in centiares.

Link copied to clipboard

Creates a Length from a scalar value in centimeters.

Link copied to clipboard

Creates a Length from a scalar value in chains.

Link copied to clipboard

Creates an Area from a scalar value in decares.

Link copied to clipboard

Creates an Area from a scalar value in deciares.

Link copied to clipboard

Creates a Rotation from a scalar value in degrees.

Link copied to clipboard

Creates a Length from a scalar value in earth degrees.

Link copied to clipboard

Creates a Length from a scalar value in earth minutes.

Link copied to clipboard

Creates a Length from a scalar value in earth radians.

Link copied to clipboard

Creates a Length from a scalar value in earth seconds.

Link copied to clipboard

Creates a Length from a scalar value in fathoms.

Link copied to clipboard

Creates a Length from a scalar value in feet.

Link copied to clipboard

Creates a Length from a scalar value in furlongs.

Link copied to clipboard

Creates a Rotation from a scalar value in gradians.

Link copied to clipboard

Creates an Area from a scalar value in hectares.

Link copied to clipboard

Returns this Area as a scalar value in acres.

Link copied to clipboard

Returns this Rotation as a scalar value in arc minutes.

Link copied to clipboard

Returns this Rotation as a scalar value in arc seconds.

Link copied to clipboard

Returns this Area as a scalar value in ares.

Link copied to clipboard

Returns this Length as a scalar value in cables.

Link copied to clipboard

Returns this Area as a scalar value in centiares.

Link copied to clipboard

Returns this Length as a scalar value in centimeters.

Link copied to clipboard

Returns this Length as a scalar value in chains.

Link copied to clipboard

Creates a Length from a scalar value in inches.

Link copied to clipboard

Returns this Area as a scalar value in decares.

Link copied to clipboard

Returns this Area as a scalar value in deciares.

Link copied to clipboard

Returns this Rotation as a scalar value in degrees.

Link copied to clipboard

Returns this Length as a scalar value in earth degrees.

Link copied to clipboard

Returns this Length as a scalar value in earth minutes.

Link copied to clipboard

Returns this Length as a scalar value in earth radians.

Link copied to clipboard

Returns this Length as a scalar value in earth seconds.

Link copied to clipboard

Returns this Length as a scalar value in fathoms.

Link copied to clipboard

Returns this Length as a scalar value in feet.

Link copied to clipboard

Returns this Length as a scalar value in furlongs.

Link copied to clipboard

Returns this Rotation as a scalar value in gradians.

Link copied to clipboard

Returns this Area as a scalar value in hectares.

Link copied to clipboard

Returns this Length as a scalar value in inches.

Link copied to clipboard

Returns this Length as a scalar value in kilometers.

Link copied to clipboard

Returns this Length as a scalar value in leagues.

Link copied to clipboard

Returns this Length as a scalar value in links.

Link copied to clipboard

Returns this Length as a scalar value in meters.

Link copied to clipboard

Returns this Length as a scalar value in miles.

Link copied to clipboard

Returns this Length as a scalar value in millimeters.

Link copied to clipboard

Returns this Length as a scalar value in nautical miles.

Link copied to clipboard

Returns this Rotation as a scalar value in radians.

Link copied to clipboard

Returns this Length as a scalar value in rods.

Link copied to clipboard

Returns this Area as a scalar value in square centimeters.

Link copied to clipboard

Returns this Area as a scalar value in square feet.

Link copied to clipboard

Returns this Area as a scalar value in square inches.

Link copied to clipboard

Returns this Area as a scalar value in square kilometers.

Link copied to clipboard

Returns this Area as a scalar value in square meters.

Link copied to clipboard

Returns this Area as a scalar value in square miles.

Link copied to clipboard

Returns this Area as a scalar value in square millimeters.

Link copied to clipboard

Returns this Area as a scalar value in square rods.

Link copied to clipboard

Returns this Area as a scalar value in square yards.

Link copied to clipboard

Returns this Length as a scalar value in yards.

Link copied to clipboard

Creates a Length from a scalar value in kilometers.

Link copied to clipboard

Creates a Length from a scalar value in leagues.

Link copied to clipboard

Creates a Length from a scalar value in links.

Link copied to clipboard

Creates a Length from a scalar value in meters.

Link copied to clipboard

Creates a Length from a scalar value in miles.

Link copied to clipboard

Creates a Length from a scalar value in millimeters.

Link copied to clipboard

Creates a Length from a scalar value in nautical miles.

Link copied to clipboard

Creates a Rotation from a scalar value in radians.

Link copied to clipboard

Creates a Length from a scalar value in rods.

Link copied to clipboard

Creates an Area from a scalar value in square centimeters.

Link copied to clipboard

Creates an Area from a scalar value in square feet.

Link copied to clipboard

Creates an Area from a scalar value in square inches.

Link copied to clipboard

Creates an Area from a scalar value in square kilometers.

Link copied to clipboard

Creates an Area from a scalar value in square meters.

Link copied to clipboard

Creates an Area from a scalar value in square miles.

Link copied to clipboard

Creates an Area from a scalar value in square millimeters.

Link copied to clipboard

Creates an Area from a scalar value in square rods.

Link copied to clipboard

Creates an Area from a scalar value in square yards.

Link copied to clipboard

Creates a Length from a scalar value in yards.

Functions

Link copied to clipboard

Returns the arccosine as a Rotation.

Link copied to clipboard

Returns the arcsine as a Rotation.

Link copied to clipboard

Returns the arctangent as a Rotation.

Link copied to clipboard

Returns the two-argument arctangent as a Rotation.

Link copied to clipboard

Convert a value from one AreaUnit to another.

Convert a value from one LengthUnit to another.

Convert a value from one RotationUnit to another.

Link copied to clipboard

Returns the cosine of this Rotation.

Link copied to clipboard

Returns the sine of this Rotation.

Link copied to clipboard
@JvmName(name = "sumArea")
fun Iterable<Area>.sum(): Area

Calculates the sum of all Area values in this collection.

@JvmName(name = "sumLength")
fun Iterable<Length>.sum(): Length

Calculates the sum of all Length values in this collection.

@JvmName(name = "sumRotation")
fun Iterable<Rotation>.sum(): Rotation

Calculates the sum of all Rotation values in this collection.

Link copied to clipboard
@JvmName(name = "sumOfArea")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Area): Area

Calculates the sum of Area values produced by selector for each element.

@JvmName(name = "sumOfLength")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Length): Length

Calculates the sum of Length values produced by selector for each element.

@JvmName(name = "sumOfRotation")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Rotation): Rotation

Calculates the sum of Rotation values produced by selector for each element.

Link copied to clipboard

Returns the tangent of this Rotation.

Link copied to clipboard
operator fun Double.times(other: Area): Area

Multiplies a scalar by an Area.

operator fun Double.times(other: Length): Length

Multiplies a scalar by a Length.

operator fun Double.times(other: Rotation): Rotation

Multiplies a scalar by a Rotation.

Link copied to clipboard

Converts this scalar to an Area in the specified unit.

Link copied to clipboard

Converts this scalar to a Length in the specified unit.

Link copied to clipboard

Converts this scalar to a Rotation in the specified unit.