DoubleImplicit

ostrat.DoubleImplicit
final class DoubleImplicit(val thisDouble: Double) extends AnyVal

Extension class for Double. This is created as a separate class to keep down the size of the package object.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def !=~(that: Double, precision: Double): Boolean
def %%(divisor: Double): Double

Alternative modulo or remainder operator that gives a positive modulus remainders for negative numbers. So -1 %% 3 == 2. -7 %% 4 == 1.

Alternative modulo or remainder operator that gives a positive modulus remainders for negative numbers. So -1 %% 3 == 2. -7 %% 4 == 1.

Attributes

def %+-(limit: Double): Double

newV = ((v - l) %% (2 * l)) + l. Alternative modulo or remainder operation that performs a modulus with a divisor twice the limit value but where values of between one limit value and 2 limit values are expressed as negatives.

newV = ((v - l) %% (2 * l)) + l. Alternative modulo or remainder operation that performs a modulus with a divisor twice the limit value but where values of between one limit value and 2 limit values are expressed as negatives.

Attributes

def *(operator: Length): Length

Extension methods multiplies this scalar Double by the operand in metres

Extension methods multiplies this scalar Double by the operand in metres

Attributes

def <>(operand: Double): Boolean

if this outside the range minus to plus operand

if this outside the range minus to plus operand

Attributes

def =~(that: Double, precision: Double): Boolean
def ><(operand: Double): Boolean

If this between plus and minus the operand

If this between plus and minus the operand

Attributes

def \/(operand: Double): Double
def commaedStr1s(others: Double*): String
def commaedStr2s(others: Double*): String
def cos: Double

The cosine of this Double expressed in radians.

The cosine of this Double expressed in radians.

Attributes

def cubed: Double

Returns the cube of this Double, raises it to the power 3.

Returns the cube of this Double, raises it to the power 3.

Attributes

Takes this Double as a value in arc degrees and converts it to a value of arc seconds.

Takes this Double as a value in arc degrees and converts it to a value of arc seconds.

Attributes

Takes this Double as a value in arc degrees and converts it to a value of radians.

Takes this Double as a value in arc degrees and converts it to a value of radians.

Attributes

Takes this Double as a value in arc degrees and converts it to a value of arc seconds.

Takes this Double as a value in arc degrees and converts it to a value of arc seconds.

Attributes

def fFromTo[A](toValue: Double, step: Double, f: Double => A): List[A]

Returns this Double value in Length or millions of kilometres.

Returns this Double value in Length or millions of kilometres.

Attributes

Returns this Int value in Length kilometres.

Returns this Int value in Length kilometres.

Attributes

def km: Length

Method to be removed, prefer kMetres.

Method to be removed, prefer kMetres.

Attributes

def mMiles: Length

Returns this Double value of millions of miles in Length.

Returns this Double value of millions of miles in Length.

Attributes

def metres: Length

Returns this Double value in Length.

Returns this Double value in Length.

Attributes

def miles: Length

Returns this Double value in Length.

Returns this Double value in Length.

Attributes

Takes this Double as a value in arc seconds and converts it to a value of arc degrees.

Takes this Double as a value in arc seconds and converts it to a value of arc degrees.

Attributes

Takes this Double as a value in thousands of an arc second and converts it to a value expressed in radians.

Takes this Double as a value in thousands of an arc second and converts it to a value expressed in radians.

Attributes

Takes this Double as a value in radians and converts it to a value of arc degrees.

Takes this Double as a value in radians and converts it to a value of arc degrees.

Attributes

Takes this Double as a value in radians and converts it to a value of arc seconds.

Takes this Double as a value in radians and converts it to a value of arc seconds.

Attributes

Takes this Double as a value in radians and converts it to a value of arc seconds.

Takes this Double as a value in radians and converts it to a value of arc seconds.

Attributes

def scaledStr(pairs: (Double, String)*): String
def scaledStr(i1: Double, s1: String, pairs: (Double, String)*): String
def scaledStr(i1: Double, s1: String, i2: Double, s2: String, pairs: (Double, String)*): String
def scaledStr(i1: Double, s1: String, i2: Double, s2: String, i3: Double, s3: String, pairs: (Double, String)*): String

Takes this Double as a value in arc seconds and converts it to a value of arc degrees.

Takes this Double as a value in arc seconds and converts it to a value of arc degrees.

Attributes

Takes this Double as a value in arc seconds and converts it to a value of radians.

Takes this Double as a value in arc seconds and converts it to a value of radians.

Attributes

def sine: Double

The sine of this Double expressed in radians.

The sine of this Double expressed in radians.

Attributes

def sqrt: Double

Returns the square root of this Double.

Returns the square root of this Double.

Attributes

Returns the square of this Double, raises it to the power 2.

Returns the square of this Double, raises it to the power 2.

Attributes

def str0: String
def str1: String
def str2: String
def str3: String
def to2Ints: (Int, Int)
def toDegsMins: (Int, Int)

Probably good to get rid of this.

Probably good to get rid of this.

Attributes

Concrete fields