Length

ostrat.geom.Length
See theLength companion object
trait Length extends Ordered[Length], LengthBased

Measurement of length which can be defined in various units metric and non-metric.

Attributes

Companion
object
Graph
Supertypes
trait LengthBased
trait Ordered[Length]
trait Comparable[Length]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait LengthMetric
class Angstroms
class Femtometres
class Gigametres
class Kilometres
class Megametres
class Metres
class Micrometres
class Millimetres
class Nanometres
class Picometres
class MegaMiles
class Miles
class Yards
class LightYears
class CubitEg
Show all

Members list

Value members

Abstract methods

def *(operand: Double): Length

Multiply by the given scalar.

Multiply by the given scalar.

Attributes

def +(operand: Length): Length

Add a Length defined in Length units. Use addLength method if you wish to mix units from different unit measurement systems.

Add a Length defined in Length units. Use addLength method if you wish to mix units from different unit measurement systems.

Attributes

def -(operand: Length): Length

Subtract a Length defined in LengthMetric units. Use subLength method if you wish to mix units from different unit measurement systems.

Subtract a Length defined in LengthMetric units. Use subLength method if you wish to mix units from different unit measurement systems.

Attributes

def /(operand: Double): Length

Divide by the given scalar.

Divide by the given scalar.

Attributes

The number of angstroms in this Length.

The number of angstroms in this Length.

Attributes

def divByLength(operand: Length): Double

The number of femtometres in this Length.

The number of femtometres in this Length.

Attributes

The number of gigametres in this Length.

The number of gigametres in this Length.

Attributes

The number of kilometres in this Length.

The number of kilometres in this Length.

Attributes

The number of megametres in this Length.

The number of megametres in this Length.

Attributes

The number of metres in this Length.

The number of metres in this Length.

Attributes

The number of micrometres in this Length.

The number of micrometres in this Length.

Attributes

The number of millimetres in this Length.

The number of millimetres in this Length.

Attributes

The number of nanometres in this Length.

The number of nanometres in this Length.

Attributes

def neg: Boolean

Is the length units greater or equal to zero.

Is the length units greater or equal to zero.

Attributes

The number of picometres in this Length.

The number of picometres in this Length.

Attributes

def pos: Boolean
def toRectArea(operand: Length): Area

Combine with an operand Length for a Rectangle to return an Area.

Combine with an operand Length for a Rectangle to return an Area.

Attributes

The negative of this Length

The negative of this Length

Attributes

Concrete methods

def *(operand: Length): Area
Implicitly added by LengthExtensions

Extension operator method to produce Area, multiplying this Length by an operand Length.

Extension operator method to produce Area, multiplying this Length by an operand Length.

Attributes

def /(operand: Length): Double
Implicitly added by LengthExtensions

Convenience extension operator to divide by a Length to return a scalar. Defers to the divByLength class method.

Convenience extension operator to divide by a Length to return a scalar. Defers to the divByLength class method.

Attributes

Converts this Length to Metres.

Converts this Length to Metres.

Attributes

Converts this Length to Metres.

Converts this Length to Metres.

Attributes

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

Inherited and Abstract methods

Attributes

Inherited from:
Ordered

The factor to convert the Length units of this class to kilometres.

The factor to convert the Length units of this class to kilometres.

Attributes

Inherited from:
LengthBased

The factor to convert the Length units of this class to metres.

The factor to convert the Length units of this class to metres.

Attributes

Inherited from:
LengthBased

The factor to convert the Length units of this class to picometres.

The factor to convert the Length units of this class to picometres.

Attributes

Inherited from:
LengthBased