LinePathLL

ostrat.geom.pglobe.LinePathLL
See theLinePathLL companion object
final class LinePathLL(val unsafeArray: Array[Double]) extends AnyVal with LatLongSeqSpec with 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

Concise view

Type members

Types

override type ThisT = LinePathLL

Gives the final type of this class.

Gives the final type of this class.

Attributes

Value members

Concrete methods

inline def %:(newElem: LatLong): LinePathLL

Alias for prepend. Prepends element, returning a new LatLong.

Alias for prepend. Prepends element, returning a new LatLong.

Attributes

inline def +!(newElem: LatLong): PolygonLL

Alias for concatClose. Concatenates the operand LatLong and closes into a PolyonLL.

Alias for concatClose. Concatenates the operand LatLong and closes into a PolyonLL.

Attributes

inline def +!:(newElem: LatLong): PolygonLL

Alias for prependClose. Prepend the left hand operand element and close into a PolygonLL.

Alias for prependClose. Prepend the left hand operand element and close into a PolygonLL.

Attributes

inline def +%(newElem: LatLong): LinePathLL

Alias for concatElem. Concatenate LatLong element, returning a new LinePathLL. An immutable append.

Alias for concatElem. Concatenate LatLong element, returning a new LinePathLL. An immutable append.

Attributes

inline def ++(operand: LinePathLL): LinePathLL

Aliased by concat. Concatenate elements of the operand LinePathLL returning a new LinePathLL. An immutable append.

Aliased by concat. Concatenate elements of the operand LinePathLL returning a new LinePathLL. An immutable append.

Attributes

inline def ++(elems: LatLong*): LinePathLL

Alias for concat. Concatenate repeat LatLong elements, returning a new LinePathLL. An immutable append.

Alias for concat. Concatenate repeat LatLong elements, returning a new LinePathLL. An immutable append.

Attributes

inline def ++!(newElems: LatLong*): PolygonLL

Alias for concatClose. Concatenate the operand LatLongs and closes the line path into a PolyognLL.

Alias for concatClose. Concatenate the operand LatLongs and closes the line path into a PolyognLL.

Attributes

inline def ++!(operand: LinePathLL): PolygonLL

Alias for concatClose. Concatenate the operand LinePathLL and close into a PolyognLL.

Alias for concatClose. Concatenate the operand LinePathLL and close into a PolyognLL.

Attributes

inline def ++/(operand: LinePathLL): LinePathLL

Aliased by concatReverse. Concatenate the reversed elements of the operand LinePathLL returning a new LinePathLL. An immutable reverse append. The ++ characters indicate concatenate multiple elements. The / character indicates a reverse operation. The purpose of the concatenate reversed methods is for PolygonLLs with shared LinePathLLs. To allow both polygons to keep their points with the clockwise convention.

Aliased by concatReverse. Concatenate the reversed elements of the operand LinePathLL returning a new LinePathLL. An immutable reverse append. The ++ characters indicate concatenate multiple elements. The / character indicates a reverse operation. The purpose of the concatenate reversed methods is for PolygonLLs with shared LinePathLLs. To allow both polygons to keep their points with the clockwise convention.

Attributes

def +--(operand: LinePathLL): LinePathLL

Alias for concatTailInit. Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. Immutable operation returns a new LinePathLL.

Alias for concatTailInit. Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. Immutable operation returns a new LinePathLL.

Attributes

def +--!(operand: LinePathLL): PolygonLL

Alias for concatTailInitClose. Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Alias for concatTailInitClose. Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Attributes

def +/--!(operand: LinePathLL): PolygonLL

Alias for concatReverseTailInitClose. Concatenates the reversed elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Alias for concatReverseTailInitClose. Concatenates the reversed elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Attributes

Creates a new backing Array[Double] with the elements of this LinePathLL, with the elements of the operand minus the head and last element of the operand.

Creates a new backing Array[Double] with the elements of this LinePathLL, with the elements of the operand minus the head and last element of the operand.

Attributes

closes this LinePathLL into a PolygonLL with a line Segment from the last point to the first point.

closes this LinePathLL into a PolygonLL with a line Segment from the last point to the first point.

Attributes

Concatenate elements of the operand LinePathLL returning a new LinePathLL. An immutable append. Aliased by ++ operator.

Concatenate elements of the operand LinePathLL returning a new LinePathLL. An immutable append. Aliased by ++ operator.

Attributes

def concat(elems: LatLong*): LinePathLL

Concatenate repeat LatLong elements returning a new LinePathLL. An immutable append. Aliased by ++ operator.

Concatenate repeat LatLong elements returning a new LinePathLL. An immutable append. Aliased by ++ operator.

Attributes

Concatenates the operand LatLong and closes into a PolyonLL.

Concatenates the operand LatLong and closes into a PolyonLL.

Attributes

def concatClose(newElems: LatLong*): PolygonLL

Concatenate the operand LatLongs and closes the line path into a PolyognLL.

Concatenate the operand LatLongs and closes the line path into a PolyognLL.

Attributes

Concatenate the operand LinePathLL and closes the line path into a PolyognLL.

Concatenate the operand LinePathLL and closes the line path into a PolyognLL.

Attributes

Concatenate LatLong element returning a new LinePathLL. An immutable append. Aliased by +% operator.

Concatenate LatLong element returning a new LinePathLL. An immutable append. Aliased by +% operator.

Attributes

Concatenate the reversed elements of the operand LinePathLL returning a new LinePathLL. An immutable append. Aliased by ++/ operator. The purpose of the concatenate reversed methods is for PolygonLLs with shared LinePathLLs. To allow both polygons to keep their points with the clockwise convention.

Concatenate the reversed elements of the operand LinePathLL returning a new LinePathLL. An immutable append. Aliased by ++/ operator. The purpose of the concatenate reversed methods is for PolygonLLs with shared LinePathLLs. To allow both polygons to keep their points with the clockwise convention.

Attributes

Concatenates the reversed elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Concatenates the reversed elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Attributes

Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand.

Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand.

Attributes

Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Concatenates the elements of the operand LinePathLL minus the head and the last element of the operand. And then closes into a PolygonLL.

Attributes

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

Attributes

Definition Classes
def prepend(newElem: LatLong): LinePathLL

Prepends element, returning a new LatLong. Aliased by %: operator.

Prepends element, returning a new LatLong. Aliased by %: operator.

Attributes

Prepend the left hand operand element and close into a PolygonLL.

Prepend the left hand operand element and close into a PolygonLL.

Attributes

Reverses the line path so its end point becomes its start point.

Reverses the line path so its end point becomes its start point.

Attributes

Reverses this LinePathLL and closes it returning a PolygonLL

Reverses this LinePathLL and closes it returning a PolygonLL

Attributes

override def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Attributes

Definition Classes
def vertsForeach[U](f: LatLong => U): Unit

Performs the side effecting function on the LatLong value of each vertex.

Performs the side effecting function on the LatLong value of each vertex.

Attributes

def vertsIForeach[U](f: (Int, LatLong) => U): Unit

Inherited methods

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:
DblNSeqSpec
override def dblBufferAppend(buffer: ArrayBuffer[Double], elem: LatLong): Unit

Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.

Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.

Attributes

Definition Classes
Inherited from:
Dbl2SeqLike

Attributes

Inherited from:
Dbl2SeqSpec

Attributes

Inherited from:
Dbl2SeqSpec
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:
Dbl2SeqLike
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

Attributes

Definition Classes
Inherited from:
LatLongSeqLike
def map[B <: ElemValueN, BB <: LinePathLike[B]](f: LatLong => B)(implicit build: LinePathBuilder[B, BB]): BB

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

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

Attributes

Inherited from:
LinePathLike
final override def ssElem(d1: Double, d2: Double): LatLong

Method for creating new specifying sequence elements from 2 Doubles In the case of Dbl2Arr this will be thee type of the elements of the sequence.

Method for creating new specifying sequence elements from 2 Doubles In the case of Dbl2Arr this will be thee type of the elements of the sequence.

Attributes

Definition Classes
Inherited from:
LatLongSeqSpec
override def ssElemEq(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:
Dbl2SeqSpec
def ssFold[B](initVal: B)(f: (B, LatLong) => B): B

specifying -sequence fold.

specifying -sequence fold.

Attributes

Inherited from:
SeqSpec

Attributes

Inherited from:
ValueNSeqSpec
def ssForeach[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

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

Attributes

Inherited from:
Dbl2SeqSpec
def ssIForeach[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 ssIForeach[U](f: (Int, LatLong) => Any): Unit

Index with foreach on the 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 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 ssIndex(index: Int): A

Accesses the specifying sequence element by a 0 based index.

Accesses the specifying sequence element by a 0 based index.

Attributes

Definition Classes
Inherited from:
Dbl2SeqSpec
def ssLast: A

Last element of the specifying sequence.

Last element of the specifying sequence.

Attributes

Inherited from:
SeqSpec
override def ssLength: Int

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

Attributes

Definition Classes
Inherited from:
ValueNSeqSpec
def ssMap[B, ArrB <: Arr[B]](f: LatLong => B)(implicit ev: ArrMapBuilder[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
override def ssReverse: 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:
DblNSeqSpec
def ssReverseForeach[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
def ssTailFold[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 ssTailForeach[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
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

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:
Dbl2SeqSpec

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:
Dbl2SeqSpec
final def unsafeLength: Int

The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.

The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.

Attributes

Inherited from:
DblNSeqLike

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:
Dbl2SeqSpec

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:
DblNSeqSpec
def unsafeSameSize(length: Int): ThisT

Attributes

Inherited from:
DblNSeqLike
override def unsafeSetElem(index: Int, elem: LatLong): Unit

Sets / mutates an element in the Arr. 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. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Definition Classes
Inherited from:
Dbl2SeqLike
def unsafeSetElems(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:
SeqLike

Concrete fields