LightYears

ostrat.geom.LightYears
See theLightYears companion object
final class LightYears(val lightYearsNum: Double) extends AnyVal, LengthNotMetric

Length can be negative. The underlying data is stored in light-years.

Attributes

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

Members list

Value members

Concrete methods

override def *(operand: Double): LightYears

Multiply by the given scalar.

Multiply by the given scalar.

Attributes

Definition Classes
override def +(operand: Length): LightYears

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

Definition Classes
override def -(operand: Length): LightYears

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

Definition Classes
override def /(operand: Double): LightYears

Divide by the given scalar.

Divide by the given scalar.

Attributes

Definition Classes
override def compare(that: Length): Int

Attributes

Definition Classes
override def divByLength(operand: Length): Double

Attributes

Definition Classes
override def metresNum: Double

The number of metres in this Length.

The number of metres in this Length.

Attributes

Definition Classes
override def neg: Boolean

Attributes

Definition Classes
override def nonNeg: Boolean

Is the length units greater or equal to zero.

Is the length units greater or equal to zero.

Attributes

Definition Classes
override def pos: Boolean

Attributes

Definition Classes
override def toKilometresFactor: Double

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

Definition Classes
inline override def toMetresFactor: Double

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

Definition Classes
inline override def toPicometreFactor: Double

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

Definition Classes
override def toRectArea(operand: Length): Kilares

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

Definition Classes
override def unary_-: LightYears

The negative of this Length

The negative of this Length

Attributes

Definition Classes

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
override def angstromsNum: Double

The number of angstroms in this Length.

The number of angstroms in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric

Attributes

Inherited from:
Ordered
override def femtometresNum: Double

The number of femtometres in this Length.

The number of femtometres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def gigametresNum: Double

The number of gigametres in this Length.

The number of gigametres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def kilometresNum: Double

The number of kilometres in this Length.

The number of kilometres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def megametresNum: Double

The number of megametres in this Length.

The number of megametres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def micrometresNum: Double

The number of micrometres in this Length.

The number of micrometres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def millimetresNum: Double

The number of millimetres in this Length.

The number of millimetres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def nanometresNum: Double

The number of nanometres in this Length.

The number of nanometres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric
override def picometresNum: Double

The number of picometres in this Length.

The number of picometres in this Length.

Attributes

Definition Classes
Inherited from:
LengthNotMetric

Converts this Length to Metres.

Converts this Length to Metres.

Attributes

Inherited from:
Length

Converts this Length to Metres.

Converts this Length to Metres.

Attributes

Inherited from:
Length

Concrete fields

Extensions

Extensions

extension (thisLength: Length)