LatLong

final class LatLong extends LatLongBase with ShowDbl2 with ElemDbl2

A value of latitude and longitude stored for the earth, stored in arc seconds. The constructor is private as instances will rarely be constructed from arc second values. "ll" and "LL" will be used as an abbreviation for LatLong in method names.

Companion:
object
trait ElemDbl2
trait ElemDblN
trait SpecialT
trait ShowDbl2
trait Show2[Double, Double]
trait TypeStr2[Double, Double]
trait ShowDec
trait Show
trait TypeStr
class Object
trait Matchable
class Any

Value members

Concrete methods

def addLat(delta: AngleVec): LatLong

Moves the value northward from this LatLong. This may involve crossing the North Pole or South Pole if the operand is a negative value. When moving across a globe it will often be done using radians as the values come from 3d vector manipulation.

Moves the value northward from this LatLong. This may involve crossing the North Pole or South Pole if the operand is a negative value. When moving across a globe it will often be done using radians as the values come from 3d vector manipulation.

def addLong(delta: AngleVec): LatLong

Add the AngleVec delta parameter to the longitude.

Add the AngleVec delta parameter to the longitude.

def addLongDegs(degsDelta: Double): LatLong
override def dbl1: Double
Definition Classes
override def dbl2: Double
Definition Classes

From focus parameter, converts to 3D metre coordinates.

From focus parameter, converts to 3D metre coordinates.

def latLongFacing(ll: LatLong): Boolean

Taking this LatLong as the focus. The focus pont being the point of the Earth that from the view point is at x = 0km aad y = 0km in 2D coordinates, determines if the parameter point on the globe is Z positive. True if it is facing the viewer false if it is on the far side of the Earth form the viewer's perspective.

Taking this LatLong as the focus. The focus pont being the point of the Earth that from the view point is at x = 0km aad y = 0km in 2D coordinates, determines if the parameter point on the globe is Z positive. True if it is facing the viewer false if it is on the far side of the Earth form the viewer's perspective.

override def name1: String
Definition Classes
override def name2: String
Definition Classes
def optFromFocusDist2(ll: LatLong): Option[PtM2]
def persistMems: Seq[Double]
def persistName: String
def segsTo(num: Int, toPt: LatLong): Seq[LatLong]

This method current does not take account of lines that cross the date line, including the Poles

This method current does not take account of lines that cross the date line, including the Poles

def show1: Double
def show2: Double
def subLat(delta: AngleVec): LatLong

Subtract the AngleVec delta parameter from the latitude.

Subtract the AngleVec delta parameter from the latitude.

def subLong(delta: AngleVec): LatLong

Subtract the AngleVec delta parameter from the longitude.

Subtract the AngleVec delta parameter from the longitude.

def subLongDegs(degsDelta: Double): LatLong

Converts to Metres3 where 0°N 0°E is the max Z value 90°N is the max Y value, 0°N 90°E is the max X value.

Converts to Metres3 where 0°N 0°E is the max Z value 90°N is the max Y value, 0°N 90°E is the max X value.

def toOptDist2(inp: LatLong): Option[PtM2]
override def toString: String
Definition Classes
Show -> LatLongBase -> Any
override def typeStr: String
Definition Classes
def xyLat0: Pt2

Get the XY point from a focus with latitude 0

Get the XY point from a focus with latitude 0

Inherited methods

def dblsApprox(that: ElemDbl2, delta: Double): Boolean
Inherited from:
ElemDbl2
def dblsEqual(that: ElemDbl2): Boolean
Inherited from:
ElemDbl2
def degMinStr: String
Inherited from:
LatLongBase
def degMinStrs: (String, String)
Inherited from:
LatLongBase
def degStr: String
Inherited from:
LatLongBase
def el1Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
def el2Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
Inherited from:
Show2
Inherited from:
Show2
@inline
final def lat: Latitude
Inherited from:
LatLongBase
@inline
final def latCos: Double

The cosine of the latitude, where North is a positive latitude.

The cosine of the latitude, where North is a positive latitude.

Inherited from:
LatLongBase
def latDegMinStr: String
Inherited from:
LatLongBase
def latDegStr: String
Inherited from:
LatLongBase
@inline
final def latDegs: Double
Inherited from:
LatLongBase
def latLetter: String
Inherited from:
LatLongBase
@inline
final def latMins: Double
Inherited from:
LatLongBase
@inline
final def latRadians: Double
Inherited from:
LatLongBase
@inline
final def latSecs: Double
Inherited from:
LatLongBase
@inline
final def latSine: Double

The sine of the latitude, where North is a positive latitude.

The sine of the latitude, where North is a positive latitude.

Inherited from:
LatLongBase
@inline
final def long: Longitude
Inherited from:
LatLongBase
@inline
final def longCos: Double

The cosine of the longitude, where East is a positive longitude.

The cosine of the longitude, where East is a positive longitude.

Inherited from:
LatLongBase
def longDegMinStr: String
Inherited from:
LatLongBase
def longDegStr: String
Inherited from:
LatLongBase
@inline
final def longDegs: Double
Inherited from:
LatLongBase
def longLetter: String
Inherited from:
LatLongBase
@inline
final def longMins: Double
Inherited from:
LatLongBase
@inline
final def longRadians: Double
Inherited from:
LatLongBase
@inline
final def longSecs: Double
Inherited from:
LatLongBase
@inline
final def longSine: Double

The sine of the longitude, where East is a positive longitude.

The sine of the longitude, where East is a positive longitude.

Inherited from:
LatLongBase
override def opt1: Option[Double]

The optional default value for parameter 1.

The optional default value for parameter 1.

Definition Classes
Inherited from:
Show2
override def opt2: Option[Double]

The optional default value for parameter 2.

The optional default value for parameter 2.

Definition Classes
Inherited from:
Show2
override def show(style: ShowStyle): String
Definition Classes
Inherited from:
ShowDec
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from:
ShowProductDec
def showDec(style: ShowStyle, maxPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowDecT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowDecT type class instances.

Inherited from:
ShowDec
def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): Strings
Inherited from:
Show2
override def showElemStrs(way: ShowStyle): Strings
Definition Classes
Inherited from:
ShowProductDec
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String
Inherited from:
ShowProductDec
def showSemisNames: String
Inherited from:
ShowProduct
override def str: String
Definition Classes
Inherited from:
ShowDec
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Inherited from:
ShowDec
def str1: String

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Inherited from:
ShowDec
def str2: String

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Inherited from:
ShowDec
def str3: String

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Inherited from:
ShowDec
final override def syntaxDepth: Int
Definition Classes
Inherited from:
ShowDbl2

Concrete fields

val latMilliSecs: Double
val longMilliSecs: Double

Implicits

Inherited implicits

final implicit override def showT1: ShowDecT[Double]
Definition Classes
Inherited from:
ShowDbl2
final implicit override def showT2: ShowDecT[Double]
Definition Classes
Inherited from:
ShowDbl2