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 ShowN
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.

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 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 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.

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
Inherited from:
ElemDbl2
Inherited from:
LatLongBase
Inherited from:
LatLongBase
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
final def lat: Latitude
Inherited from:
LatLongBase
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
Inherited from:
LatLongBase
Inherited from:
LatLongBase
final def latDegs: Double
Inherited from:
LatLongBase
Inherited from:
LatLongBase
final def latMins: Double
Inherited from:
LatLongBase
final def latRadians: Double
Inherited from:
LatLongBase
final def latSecs: Double
Inherited from:
LatLongBase
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
final def long: Longitude
Inherited from:
LatLongBase
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
Inherited from:
LatLongBase
Inherited from:
LatLongBase
final def longDegs: Double
Inherited from:
LatLongBase
Inherited from:
LatLongBase
final def longMins: Double
Inherited from:
LatLongBase
final def longRadians: Double
Inherited from:
LatLongBase
final def longSecs: Double
Inherited from:
LatLongBase
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:
ShowN
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from:
ShowN
def showDec(style: ShowStyle, maxPlaces: Int): String

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

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

Inherited from:
Show
def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): Strings
Inherited from:
Show2
Inherited from:
ShowN
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String
Inherited from:
ShowN

A Strings Arr collection of the show methods return values of the elements of this Show Product class.

A Strings Arr collection of the show methods return values of the elements of this Show Product class.

Inherited from:
ShowN
override def str: String
Definition Classes
Inherited from:
ShowN

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Inherited from:
ShowDec

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

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

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

Implicits

Inherited implicits

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