Length

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

Attributes

Companion
object
Graph
Supertypes
trait Ordered[Length]
trait Comparable[Length]
class Object
trait Matchable
class Any
Known subtypes
class MegaMiles
class Miles
class Yards
trait LengthMetric
class Gigametres
class Kilometres
class Megametres
class Metres
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

def divByLength(operand: Length): Double

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

def mulByLength(operand: Length): Area

Multiply by another Length to produce an area.

Multiply by another Length to produce an area.

Attributes

def neg: Boolean

Is the length units greater or equal to zero.

Is the length units greater or equal to zero.

Attributes

def pos: Boolean

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