LinePathLL

ostrat.geom.pglobe.LinePathLL
See theLinePathLL companion object
final class LinePathLL(val arrayUnsafe: Array[Double]) extends AnyVal, LatLongSeqSpec, LinePathDbl2[LatLong]

A latitude-longitude line path. A quasi line path where the points are stored as points of latitude and longitude.Once the points are converted into a view, ie into pixel positions an actual polygon can be drawn or filled as desired. Do not create line paths that span an arc of greater than 90 degrees as this may break the algorithms.

Attributes

Companion
object
Graph
Supertypes

Members list

Type members

Types

override type PolygonT = PolygonLL
override type ThisT = LinePathLL

Gives the final type of this class.

Gives the final type of this class.

Attributes

Inherited and Abstract types

Attributes

Inherited from:
LinePathBase

Attributes

Inherited from:
LinePathBase

Value members

Concrete methods

override def fromArray(array: Array[Double]): LinePathLL

Attributes

Definition Classes
override def polygonFromArray(array: Array[Double]): PolygonLL

Constructs a PolygonBase for this vertex type from an Array[Double].

Constructs a PolygonBase for this vertex type from an Array[Double].

Attributes

Definition Classes
override def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Attributes

Definition Classes

Inherited methods

final override def %:(operand: LatLong): ThisT

Prepends a single vertex of type VT. Returns a new extended LinePathBase.

Prepends a single vertex of type VT. Returns a new extended LinePathBase.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def %<:(operand: LatLong): ThisT

Prepends a single vertex of type VT. Returns a new extended LinePathBase.

Prepends a single vertex of type VT. Returns a new extended LinePathBase.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def +%(operandPt: LatLong): ThisT

Appends a single vertex of type VT. Returns a new extended LinePathBase.

Appends a single vertex of type VT. Returns a new extended LinePathBase.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def ++(operand: ThisT): ThisT

Appends another LinePathBase of this type. Returns a new extended LinePathBase.

Appends another LinePathBase of this type. Returns a new extended LinePathBase.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def ++<(operand: ThisT): ThisT

Appends the reverse vertex order of another LinePathBase of this type. Returns a new extended LinePathBase. The < character after the ++ indicates that is the operand that is being reversed.

Appends the reverse vertex order of another LinePathBase of this type. Returns a new extended LinePathBase. The < character after the ++ indicates that is the operand that is being reversed.

Attributes

Definition Classes
Inherited from:
LinePathDblN
override def +-+(operand: ThisT): ThisT

Appends the tail (without its first point) of the operand LinePathBase of this type. The ++ indicates to append a sequence. The trailing indicates to drop the first point of the operand.

Appends the tail (without its first point) of the operand LinePathBase of this type. The ++ indicates to append a sequence. The trailing indicates to drop the first point of the operand.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def +<+(operand: ThisT): ThisT

Reverses this line path and then appends the operand. The < character between the + characters indicates that it this line path that is reversed.

Reverses this line path and then appends the operand. The < character between the + characters indicates that it this line path that is reversed.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def +<+<(operand: ThisT): ThisT

Reverses this line path and then appends the operand. The < character between the + characters indicates that it this line path that is reversed.

Reverses this line path and then appends the operand. The < character between the + characters indicates that it this line path that is reversed.

Attributes

Definition Classes
Inherited from:
LinePathDblN
def appendArray(appendProductsLength: Int): Array[Double]

Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.

Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.

Attributes

Inherited from:
SeqSpecDblN

Attributes

Inherited from:
LinePathDblN

Implementation helper method for implementation of appendTail and appendTailToPolygon methods. End users should rarely need to use this, but it's been left public for when it is.

Implementation helper method for implementation of appendTail and appendTailToPolygon methods. End users should rarely need to use this, but it's been left public for when it is.

Attributes

Inherited from:
LinePathDblN

Maps the 1st Doubles of each element to a double with one functions and then the second Doubles with a second Double.

Maps the 1st Doubles of each element to a double with one functions and then the second Doubles with a second Double.

Attributes

Inherited from:
SeqLikeImutDbl2

Maps the 1st Double of each element to a new Array[Double], copies the 2nd elements.

Maps the 1st Double of each element to a new Array[Double], copies the 2nd elements.

Attributes

Inherited from:
SeqLikeImutDbl2

Maps the 2nd Double of each element with the parameter function to a new Array[Double], copies the 1st Double of each element.

Maps the 2nd Double of each element with the parameter function to a new Array[Double], copies the 1st Double of each element.

Attributes

Inherited from:
SeqLikeImutDbl2

Maps the 2 Doubles of each element to a new Array[Double].

Maps the 2 Doubles of each element to a new Array[Double].

Attributes

Inherited from:
SeqLikeImutDbl2
final def arrayLen: Int

The length of the backing Array Double.

The length of the backing Array Double.

Attributes

Inherited from:
ArrayDblBacked

Maps the Tuple2[Double, Double]s to Tuple2[Double, Double}.

Maps the Tuple2[Double, Double]s to Tuple2[Double, Double}.

Attributes

Inherited from:
SeqLikeImutDbl2

Produces a new Array[Double] of the same size, with the functions acting on the first and second Double of each element.

Produces a new Array[Double] of the same size, with the functions acting on the first and second Double of each element.

Attributes

Inherited from:
SeqLikeImutDbl2
def dblsMap(f1: Double => Double, f2: Double => Double): ThisT

This maps from the final type to the final type by just using functions on the underlying Doubles.

This maps from the final type to the final type by just using functions on the underlying Doubles.

Attributes

Inherited from:
SeqLikeImutDbl2
final override def elem(index: Int): LatLong

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Attributes

Definition Classes
Inherited from:
SeqLikeImutDbl2

Attributes

Inherited from:
SeqLikeImutDbl2

Attributes

Inherited from:
SeqLikeImutDbl2
final override def elemEq(a1: LatLong, a2: LatLong): Boolean

Checks if 2 values of the specifying sequence are equal.

Checks if 2 values of the specifying sequence are equal.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl2
final override def elemFromDbls(d1: Double, d2: Double): LatLong

Constructs a Dbl2Elem from 2 Doubles.

Constructs a Dbl2Elem from 2 Doubles.

Attributes

Definition Classes
Inherited from:
LatLongSeqSpec
final override def elemProdSize: Int

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl2

Attributes

Inherited from:
SeqSpecValueN
override def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Attributes

Definition Classes
Inherited from:
SeqSpec
final override def fElemStr: LatLong => String

String for element, can be overridden.

String for element, can be overridden.

Attributes

Definition Classes
Inherited from:
LatLongSeqLike
def foldLeft[B](initVal: B)(f: (B, LatLong) => B): B

foldLeft over the specifying sequence.

foldLeft over the specifying sequence.

Attributes

Inherited from:
SeqSpec
override def foreach[U](f: LatLong => U): Unit

Performs a side effecting function on each element of the specifying sequence in order.

Performs a side effecting function on each element of the specifying sequence in order.

Attributes

Definition Classes
Inherited from:
SeqSpec
def iForeach[U](initIndex: Int)(f: (Int, LatLong) => U): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

Inherited from:
SeqSpec
def iForeach[U](f: (Int, LatLong) => Any): Unit

Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

Inherited from:
SeqSpec
override def init: ThisT

This line path with the last vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.

This line path with the last vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.

Attributes

Definition Classes
Inherited from:
LinePathDblN

Attributes

Inherited from:
LinePathDblN
override def inner: ThisT

This line path with the first and last vertex's removed. This can be useful for borders where the end points may show up in multiple line paths* and therefore sometimes need to be excluded when appending.

This line path with the first and last vertex's removed. This can be useful for borders where the end points may show up in multiple line paths* and therefore sometimes need to be excluded when appending.

Attributes

Definition Classes
Inherited from:
LinePathDblN
def innerForeach[U](f: LatLong => U): Unit

Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Attributes

Inherited from:
SeqSpec
def last: LatLong

Last element of the specifying sequence.

Last element of the specifying sequence.

Attributes

Inherited from:
SeqSpec
def map[B <: ValueNElem, BB <: LinePathBase[B]](f: LatLong => B)(implicit build: LinePathBuilder[B, BB]): BB

maps to a LinePathBase. This map operates on a single LinePathBase its not to be confused with a map on Arr of LinePathBases.

maps to a LinePathBase. This map operates on a single LinePathBase its not to be confused with a map on Arr of LinePathBases.

Attributes

Inherited from:
LinePathBase
def mapArr[B, ArrB <: Arr[B]](f: LatLong => B)(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Specialised map to an immutable Arr of B. For Sequ dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolygonLike.

Specialised map to an immutable Arr of B. For Sequ dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolygonLike.

Attributes

Inherited from:
SeqSpec
def mutateElemUnsafe(index: Int, f: LatLong => LatLong): Unit

Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Inherited from:
SeqLikeBacked
final override def numElems: Int

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

Attributes

Definition Classes
Inherited from:
SeqLikeImutDbl2
final def numVerts: Int

The number of vertices.

The number of vertices.

Attributes

Inherited from:
LinePathBase
override def reverse: ThisT

Reverses the order of the elements of the specifying sequence.

Reverses the order of the elements of the specifying sequence.

Attributes

Definition Classes
Inherited from:
SeqSpecDblN
def reverseForeach[U](f: LatLong => U): Unit

Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

Inherited from:
SeqSpec
override def setElemUnsafe(index: Int, newElem: LatLong): Unit

Sets / mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Definition Classes
Inherited from:
SeqLikeImutDbl2
def setElemsUnsafe(index: Int, elems: LatLong*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Inherited from:
SeqLikeBacked
override def tail: ThisT

This line path with the first vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.

This line path with the first vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.

Attributes

Definition Classes
Inherited from:
LinePathDblN
def tailFold[B](initial: B)(f: (B, LatLong) => B): B

FoldLeft over the tail of the specifying sequence.

FoldLeft over the tail of the specifying sequence.

Attributes

Inherited from:
SeqSpec
def tailForeach[U](f: LatLong => U): Unit

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Attributes

Inherited from:
SeqSpec
def tailForeachPair[U](f: (Double, Double) => U): Unit

Attributes

Inherited from:
SeqSpecDbl2
override def toPolygon: PolygonT

Closes this LinePathBase into a PolygonBase by adding a LSegBase from the last vertex to the first.

Closes this LinePathBase into a PolygonBase by adding a LSegBase from the last vertex to the first.

Attributes

Definition Classes
Inherited from:
LinePathDblN
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SeqLike -> Any
Inherited from:
SeqLike

Reverses the order of the elements in a new Array[Double] which is returned.

Reverses the order of the elements in a new Array[Double] which is returned.

Attributes

Inherited from:
SeqSpecDblN
def unsafeSameSize(length: Int): ThisT

Attributes

Inherited from:
SeqLikeImutDblN
final override def |+%|(operandPt: LatLong): PolygonT

Appends the operand point and closes the path into a PolygonBase of the matching type. +% indicates to append a point. The enclosing '|' characters indicate to close the line path into a polygon.

Appends the operand point and closes the path into a PolygonBase of the matching type. +% indicates to append a point. The enclosing '|' characters indicate to close the line path into a polygon.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |++<|(operand: ThisT): PolygonT

Appends the reverse vertex order of another LinePathBase of this type. Returns a new extended closed PolygonBase. The < after the ++ indicates it is the operand to be reversed.

Appends the reverse vertex order of another LinePathBase of this type. Returns a new extended closed PolygonBase. The < after the ++ indicates it is the operand to be reversed.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |++|(operand: ThisT): PolygonT

Appends the operand LinePathBase of this type and closes the path into a PolygonBase of the matching type. ++ indicates to append a sequence. The enclosing '|' characters indicate to close the line path into a polygon.

Appends the operand LinePathBase of this type and closes the path into a PolygonBase of the matching type. ++ indicates to append a sequence. The enclosing '|' characters indicate to close the line path into a polygon.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |+-+|(operand: ThisT): PolygonT

Appends the tail (without its first point) of the operand LinePathBase of this type, closing the path to a PolygonBase of the matching type. ++ indicates append a sequence. The - between the + characters indicates to drop the first point of the operand. The enclosing '|' characters indicate to close the line path into a polygon.

Appends the tail (without its first point) of the operand LinePathBase of this type, closing the path to a PolygonBase of the matching type. ++ indicates append a sequence. The - between the + characters indicates to drop the first point of the operand. The enclosing '|' characters indicate to close the line path into a polygon.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |+<+|(operand: ThisT): PolygonT

Reverses this line path, appends the operand line path and then closes to a polygon. The < character between the + characters indicates that this line is reversed. The | characters at the begining and the end indicate to close to a polygon.

Reverses this line path, appends the operand line path and then closes to a polygon. The < character between the + characters indicates that this line is reversed. The | characters at the begining and the end indicate to close to a polygon.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |+|[AA >: LatLong](pt: LatLong): PolygonT

Appends a single vertex of type A. Returns a PolygonBase.

Appends a single vertex of type A. Returns a PolygonBase.

Attributes

Definition Classes
Inherited from:
LinePathDblN
final override def |-++-|(operand: ThisT): PolygonT

Appends the init of another LinePathBase of this type to the init of this LinePathBase, closing the path to return a PolygonBase of the matching type. The - before the ++ indicates to drop the last point of this line path. The - after the ++ indicates to drop the end point of the operand.

Appends the init of another LinePathBase of this type to the init of this LinePathBase, closing the path to return a PolygonBase of the matching type. The - before the ++ indicates to drop the last point of this line path. The - after the ++ indicates to drop the end point of the operand.

Attributes

Definition Classes
Inherited from:
LinePathDblN

Concrete fields