Length

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

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

Attributes

Companion
object
Graph
Supertypes
trait Ordered[Length]
trait Comparable[Length]
class Object
class AnyVal
trait Matchable
class Any
Show all

Members list

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 neg: Boolean
def pos: Boolean
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

def <(that: Length): Boolean

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered
def >(that: Length): Boolean

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Concrete fields