Length

ostrat.Length
See theLength companion object
final class Length(val metresNum: Double) extends AnyVal with Ordered[Length]

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

Attributes

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

Members list

Concise view

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

Attributes

Definition Classes
def kmStr2: String
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.

Attributes

def min(operand: Length): Length
def str: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Concrete fields