Package-level declarations

Types

Link copied to clipboard
data class Angle : Quantity<Angle>
Link copied to clipboard
data class Distance : Quantity<Distance>

A quantity of distance or length

Link copied to clipboard
abstract class Quantity<T : Quantity<T>>

Represents a physical quantity

Link copied to clipboard
data class TimeSpan : Quantity<TimeSpan>

A quantity of a time-span; a duration

Properties

Link copied to clipboard

Creates a new Distance from a distance in centimeters

Link copied to clipboard

Creates a new Angle from an angle in degrees

Link copied to clipboard

Creates a new Distance from a distance in feet

Link copied to clipboard

Creates a new Distance from a distance in inches

Link copied to clipboard

Creates a new Distance from a distance in inches

Link copied to clipboard

Creates a new Distance from a distance in meters

Link copied to clipboard

Creates a new Distance from a distance in millimeters

Link copied to clipboard

Creates a new TimeSpan from a time-span in milliseconds

Link copied to clipboard

Creates a new Angle from an angle in radians

Link copied to clipboard

Creates a new Angle from an angle in full revolutions

Link copied to clipboard

Creates a new TimeSpan from a time-span in seconds

Link copied to clipboard

Creates a new TimeSpan from a time-span in microseconds

Link copied to clipboard

Creates a new Distance from a distance in yards

Functions

Link copied to clipboard
fun <T : Quantity<T>> abs(quantity: T): T