ImperialLength

trait ImperialLength extends Length

Common trait for metric units of length.

trait Length
trait Ordered[Length]
trait Comparable[Length]
class Object
trait Matchable
class Any
class MMiles
class Miles
class Yards

Value members

Concrete methods

@inline
override def gMetresNum: Double
Definition Classes
@inline
override def kMetresNum: Double
Definition Classes
@inline
override def mMetresNum: Double
Definition Classes

Inherited methods

def *(operand: Double): Length

Multiplies this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

Multiplies this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

Inherited from
Length
def +(operand: Length): Length

Adds the operand length to this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

Adds the operand length to this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

Inherited from
Length
def -(operand: Length): Length

Subtracts the operand length from this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

Subtracts the operand length from this length. The return type will be narrowed to the dispatching object's type in the final implementing class.

Inherited from
Length
def /(operand: Double): Length

Divides this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

Divides this length by the operand scalar Double. The return type will be narrowed to the final class's class in the implementing class.

Inherited from
Length
def <(that: Length): Boolean
Inherited from
Ordered
def <=(that: Length): Boolean
Inherited from
Ordered
def >(that: Length): Boolean
Inherited from
Ordered
def >=(that: Length): Boolean
Inherited from
Ordered
def compare(that: Length): Int
Inherited from
Ordered
def compareTo(that: Length): Int
Inherited from
Ordered
@inline
final def gMetres: GMetres

The value of this length expressed as GMetres gigametres or millions of kilometres.

The value of this length expressed as GMetres gigametres or millions of kilometres.

Inherited from
Length
@inline
final def kMetres: KMetres

The value of this length expressed as KMetres.

The value of this length expressed as KMetres.

Inherited from
Length
@inline
final def mMetres: MMetres

The value of this length expressed as MMetres megametres or thousands of kilometres.

The value of this length expressed as MMetres megametres or thousands of kilometres.

Inherited from
Length
def mMilesNum: Double

The scalar Double value of this length expressed in millions of miles.

The scalar Double value of this length expressed in millions of miles.

Inherited from
Length
@inline
final def mMmiles: MMiles

The value of this length expressed as Miles.

The value of this length expressed as Miles.

Inherited from
Length
def max(operand: Length): Length

Returns the max Length of this and the operand value. The return type will be narrowed to the final class's class in the implementing class.

Returns the max Length of this and the operand value. The return type will be narrowed to the final class's class in the implementing class.

Inherited from
Length
@inline
final def metres: Metres

The value of this length expressed as Metres.

The value of this length expressed as Metres.

Inherited from
Length
def metresNum: Double

The scalar Double value of this length expressed in metres.

The scalar Double value of this length expressed in metres.

Inherited from
Length
@inline
final def miles: Miles

The value of this length expressed as Miles.

The value of this length expressed as Miles.

Inherited from
Length
def milesNum: Double

The scalar Double value of this length expressed in miles.

The scalar Double value of this length expressed in miles.

Inherited from
Length

Negates this length. The return type will be narrowed to the final class's class in the implementing class.

Negates this length. The return type will be narrowed to the final class's class in the implementing class.

Inherited from
Length
@inline
final def yards: Yards

The value of this length expressed as Miles.

The value of this length expressed as Miles.

Inherited from
Length
def yardsNum: Double

The scalar Double value of this length expressed in miles.

The scalar Double value of this length expressed in miles.

Inherited from
Length