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.

class AnyVal
trait Matchable
class Any

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.

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.

@inline
def *(operator: Metres): Metres

Extension methods multiplies this scalar Double by the operand in metres

Extension methods multiplies this scalar Double by the operand in metres

def <>(operand: Double): Boolean

if this outside the range minus to plus operand

if this outside the range minus to plus operand

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

def commaedStr1s(others: Double*): String
def commaedStr2s(others: Double*): String
@inline
def cos: Double

The cosine of this Double expressed in radians.

The cosine of this Double expressed in radians.

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.

@inline
def degsToMilliSecs: Double

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.

@inline
def degsToRadians: Double

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.

@inline
def degsToSecs: Double

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.

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

Returns this Double value in GMetres or millions of kilometres.

Returns this Double value in GMetres or millions of kilometres.

@inline

Returns this Double value in KMetres kilometres.

Returns this Double value in KMetres kilometres.

Method to be removed, prefer kMetres.

Method to be removed, prefer kMetres.

@inline

Returns this Double value in MMiles millions of miles.

Returns this Double value in MMiles millions of miles.

@inline

Returns this Double value in Metres.

Returns this Double value in Metres.

@inline
def miles: Miles

Returns this Double value in Miles.

Returns this Double value in Miles.

@inline
def milliSecsToRadians: Double

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.

@inline
def millisecsToDegs: Double

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.

def precisionDefault: Double
@inline
def radiansToDegs: Double

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.

@inline
def radiansToMilliSecs: Double

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.

@inline
def radiansToSecs: Double

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.

@inline
def secsToDegs: Double

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.

@inline
def secsToRadians: Double

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.

@inline
def sine: Double

The sine of this Double expressed in radians.

The sine of this Double expressed in radians.

def sqrt: Double

Returns the square root of this Double.

Returns the square root of this Double.

def squared: Double

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

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

def str0: String

String representation for Double that drops the decimal point and zero for integer values.

String representation for Double that drops the decimal point and zero for integer values.

def str1: String
def str2: String
def str3: String
def to2Ints: (Int, Int)
def toDegsMins: (Int, Int)
def toRoundInt: Int
@inline
def toWholeDegsStr: String

Probably good to get rid of this.

Probably good to get rid of this.

Concrete fields

val thisDouble: Double