LinePathLL

final class LinePathLL(val unsafeArray: Array[Double]) extends AnyVal with LatLongsLike with LinePathDbl2s[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.

Companion:
object
class AnyVal
trait Matchable
class Any

Type members

Types

override type ThisT = LinePathLL

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

def arrayAppendTailInit(operand: LinePathLL): Array[Double]

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.

@inline

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.

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.

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.

Concatenates the operand LatLong and closes into a PolyonLL.

Concatenates the operand LatLong and closes into a PolyonLL.

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.

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

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

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.

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.

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.

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.

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.

def prepend(newElem: LatLong): LinePathLL

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

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

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

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

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

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

Reverses this LinePathLL and closes it returning a PolygonLL

Reverses this LinePathLL and closes it returning a PolygonLL

override def typeStr: String
Definition Classes
override def unsafeFromArray(array: Array[Double]): LinePathLL
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.

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

Inherited methods

@inline
override def arrLen: Int
Definition Classes
Inherited from:
DataDblNs
final override def dataElem(d1: Double, d2: Double): LatLong
Definition Classes
Inherited from:
LatLongsLike
def dataFold[B](initVal: B)(f: (B, LatLong) => B): B
Inherited from:
DataGen
def dataForeach[U](f: LatLong => U): Unit

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

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

Inherited from:
DataGen
def dataForeachPairTail[U](f: (Double, Double) => U): Unit
Inherited from:
DataDbl2s
def dataIForeach[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.

Inherited from:
DataGen
def dataIForeach[U](f: (Int, LatLong) => Any): 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.

Inherited from:
DataGen
Inherited from:
DataGen
final override def dataLength: 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

Definition Classes
Inherited from:
DataValueNs
def dataLengthStr: String

Just a handy short cut to give the length of this collection as a string.

Just a handy short cut to give the length of this collection as a string.

Inherited from:
DataGen
def dataMap[B, ArrB <: SeqImut[B]](f: LatLong => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

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

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

Inherited from:
DataGen
def dataTailForeach[U](f: LatLong => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from:
DataGen
def dataTailfold[B](initial: B)(f: (B, LatLong) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from:
DataGen
def elem1sArray: Array[Double]
Inherited from:
DataDbl2s
def elem2sArray: Array[Double]
Inherited from:
DataDbl2s
override def elemProdSize: Int
Definition Classes
Inherited from:
DataDbl2s
final 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.

Inherited from:
DataGen
final override def fElemStr: LatLong => String
Definition Classes
Inherited from:
LatLongsLike
override def indexData(index: Int): LatLong
Definition Classes
Inherited from:
DataDbl2s
def map[B <: ElemValueN, BB <: LinePathLike[B]](f: LatLong => B)(implicit build: LinePathBuilder[B, BB]): BB
Inherited from:
LinePathLike
override def reverseData: ThisT
Definition Classes
Inherited from:
DataDblNs
final override def toString: String
Definition Classes
DataGen -> Any
Inherited from:
DataGen
def unsafeReverseArray: Array[Double]

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.

Inherited from:
DataDblNs
final override def unsafeSameSize(length: Int): ThisT
Definition Classes
Inherited from:
DataDblNs
override def unsafeSetElem(index: Int, elem: LatLong): Unit
Definition Classes
Inherited from:
DataDbl2s
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.

Inherited from:
DataGen

Concrete fields

val unsafeArray: Array[Double]