Length

final class Length(val metresNum: Double) extends AnyVal with Ordered[Length]

Length can be negative. The underlying data is stored in metres.

Companion:
object
trait Ordered[Length]
trait Comparable[Length]
class Object
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def *(operand: Length): Area
Implicitly added by MetreExtensions
def *(operand: Double): Length
def +(operand: Length): Length
def -(operand: Length): Length
def /(operand: Length): Double
Implicitly added by MetreExtensions
def /(operand: Double): Length
override def compare(that: Length): Int
Definition Classes
Ordered
@inline
def gMetresNum: Double
@inline
def kMetresNum: Double
def kmStr2: String
@inline
def mMetresNum: Double
@inline
def mMilesNum: Double
def max(operand: Length): Length

Returns the max length of this and the operand length in Length.

Returns the max length of this and the operand length in Length.

@inline
def milesNum: Double
def min(operand: Length): Length
def neg: Boolean
def pos: Boolean
def str: String
def typeStr: String
@inline
def yardsNum: Double

Inherited methods

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 compareTo(that: Length): Int
Inherited from:
Ordered

Concrete fields

val metresNum: Double