MetricLength

trait MetricLength extends Length

Common trait for metric units of length.

trait Length
trait Ordered[Length]
trait Comparable[Length]
class Object
trait Matchable
class Any
class GMetres
class KMetres
class MMetres
class Metres

Value members

Concrete methods

@inline
override def mMilesNum: Double
Definition Classes
@inline
override def milesNum: Double
Definition Classes
@inline
override def yardsNum: 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
def gMetresNum: Double

The scalar Double value of this length expressed in gigametres or millions of kilometres.

The scalar Double value of this length expressed in 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
def kMetresNum: Double

The scalar Double value of this length expressed in kilometres.

The scalar Double value of this length expressed in kilometres.

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 mMetresNum: Double

The scalar Double value of this length expressed in megametres.

The scalar Double value of this length expressed in megametres.

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

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