Packages

t

ostrat.geom

LatLongsLike

trait LatLongsLike extends Dbl2sArr[LatLong]

A base trait for a sequence of LatLongs. The final classes are more strongly typed as a a PolygonLLand LatLongs, for a a general collection of LatLong points.

Linear Supertypes
Dbl2sArr[LatLong], DblNsArr[LatLong], ArrayDblBased, ValueNsArr[LatLong], ArrImut[LatLong], ArrayLike[LatLong], ArrayLikeBase[ostrat.geom.LatLong @scala.annotation.unchecked.uncheckedVariance], Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LatLongsLike
  2. Dbl2sArr
  3. DblNsArr
  4. ArrayDblBased
  5. ValueNsArr
  6. ArrImut
  7. ArrayLike
  8. ArrayLikeBase
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type ThisT <: Dbl2sArr[LatLong]

    The final type of this object.

    The final type of this object.

    Definition Classes
    Dbl2sArrDblNsArrValueNsArrArrImutArrayLike

Abstract Value Members

  1. abstract def arrayUnsafe: Array[Double]
    Definition Classes
    ArrayDblBased
  2. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  3. abstract def typeStr: String

    String specifying the type of this object.

    String specifying the type of this object.

    Definition Classes
    ArrImut
  4. abstract def unsafeFromArray(array: Array[Double]): ThisT
    Definition Classes
    DblNsArr

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def ++[N <: ValueNsArr[LatLong]](operand: N)(implicit factory: (Int) => N): N

    Appends ProductValue collection with the same type of Elements to a new ValueProduct collection.

    Appends ProductValue collection with the same type of Elements to a new ValueProduct collection. Note the operand collection can have a different type, although it shares the same element type. In such a case, the returned collection will have the type of the operand not this collection.

    Definition Classes
    ValueNsArr
  4. def :+[N <: ValueNsArr[LatLong]](operand: LatLong)(implicit factory: (Int) => N): N

    Appends an element to a new ProductValue collection of type N with the same type of Elements.

    Appends an element to a new ProductValue collection of type N with the same type of Elements.

    Definition Classes
    ValueNsArr
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. def append(op: LatLong): ThisT

    Functionally appends the operand of type A.

    Functionally appends the operand of type A. This alphanumeric method is not aliased by the ++ operator, to avoid confusion with numeric operators.

    Definition Classes
    Dbl2sArr
  7. 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.

    Definition Classes
    DblNsArr
  8. def apply(index: Int): LatLong
    Definition Classes
    Dbl2sArrArrayLike
  9. def arrLen: 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.

    Definition Classes
    DblNsArrValueNsArr
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def collect[B, BB <: ArrImut[B]](pf: PartialFunction[LatLong, B])(implicit ev: ArrTBuilder[B, BB]): BB

    Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Definition Classes
    ArrayLike
  12. def collectList[B](pf: PartialFunction[LatLong, B]): List[B]

    Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Definition Classes
    ArrayLike
  13. def contains[A1 >: LatLong](elem: A1): Boolean
    Definition Classes
    ArrayLike
  14. def cycleGet(index: Int): LatLong

    Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection.

    Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  15. def eMap[B, ArrB <: ArrImut[B]](f: (LatLong) => EMon[B])(implicit ev: ArrTBuilder[B, ArrB]): EMon[ArrB]
    Definition Classes
    ArrayLike
  16. def eMapList[B](f: (LatLong) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  17. def elem1sArray: Array[Double]
    Definition Classes
    Dbl2sArr
  18. def elem2sArray: Array[Double]
    Definition Classes
    Dbl2sArr
  19. final def elemBuilder(d1: Double, d2: Double): LatLong

    Method for creating new elements from 2 Doubles.

    Method for creating new elements from 2 Doubles.

    Definition Classes
    LatLongsLikeDbl2sArr
  20. def elemProductNum: Int

    The number of Doubles, that specify / construct an element of this immutable flat Array based collection class.

    The number of Doubles, that specify / construct an element of this immutable flat Array based collection class.

    Definition Classes
    Dbl2sArrDblNsArrValueNsArr
  21. final def elemsLen: Int

    The number of product elements in this collection.

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

    Definition Classes
    ValueNsArrArrayLikeBase
  22. final def elemsStr: String

    The element String allows the composition of toString for the whole collection.

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

    Definition Classes
    ArrImut
  23. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  24. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  25. def existsCount(f: (LatLong) => Boolean): Int

    Counts the number of elements that fulfil the condition A => Boolean

    Counts the number of elements that fulfil the condition A => Boolean

    Definition Classes
    ArrayLike
  26. final def fElemStr: (LatLong) => String
    Definition Classes
    LatLongsLikeArrImut
  27. def fHeadElse[B](noHead: => B)(ifHead: (LatLong) => B): B
    Definition Classes
    ArrayLike
  28. def fMax[B](defaultValue: B)(f: (LatLong) => B)(implicit cmp: Ordering[B]): B

    Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Definition Classes
    ArrayLike
  29. def fMin[B](defaultValue: B)(f: (LatLong) => B)(implicit cmp: Ordering[B]): B

    Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Definition Classes
    ArrayLike
  30. def filter[ArrA <: ArrImut[LatLong]](f: (LatLong) => Boolean)(implicit ev: ArrTBuilder[LatLong, ArrA]): ArrA
    Definition Classes
    ArrayLike
  31. def filterNot[ArrA <: ArrImut[LatLong]](f: (LatLong) => Boolean)(implicit ev: ArrTBuilder[LatLong, ArrA]): ArrA
    Definition Classes
    ArrayLike
  32. def filterToList(f: (LatLong) => Boolean): List[LatLong]
    Definition Classes
    ArrayLike
  33. def find(f: (LatLong) => Boolean): Option[LatLong]
    Definition Classes
    ArrImut
  34. def flatMap[ArrB <: ArrImut[_]](f: (LatLong) => ArrB)(implicit ev: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  35. def foldHeadTail[B](initial: B)(fHead: (B, LatLong) => B)(fTail: (B, LatLong) => B): B
    Definition Classes
    ArrayLike
  36. def foldLeft[B](initial: B)(f: (B, LatLong) => B): B
    Definition Classes
    ArrayLike
  37. def foldTailLeft[B](initial: B)(f: (B, LatLong) => B): B
    Definition Classes
    ArrayLike
  38. def foldWithPrevious[B](initPrevious: LatLong, initAcc: B)(f: (B, LatLong, LatLong) => B): B
    Definition Classes
    ValueNsArr
  39. def forAll(p: (LatLong) => Boolean): Boolean
    Definition Classes
    ArrayLike
  40. def foreach[U](f: (LatLong) => U): Unit

    Performs the effectual function on each member of the collection.

    Performs the effectual function on each member of the collection.

    Definition Classes
    ArrayLikeArrayLikeBase
  41. def foreachArr(f: (Dbls) => Unit): Unit
    Definition Classes
    Dbl2sArrDblNsArr
  42. def foreachInit[U](f: (LatLong) => U): Unit
    Definition Classes
    ArrayLike
  43. def foreachPairTail[U](f: (Double, Double) => U): Unit
    Definition Classes
    Dbl2sArr
  44. def foreachReverse[U](f: (LatLong) => U): Unit

    Consider changing this name, as might not be appropriate to all sub classes.

    Consider changing this name, as might not be appropriate to all sub classes.

    Definition Classes
    ArrayLike
  45. def foreachTail[U](f: (LatLong) => U): Unit
    Definition Classes
    ArrayLike
  46. def getPair(index: Int): (Double, Double)
    Definition Classes
    Dbl2sArr
  47. def hashCode(): Int
    Definition Classes
    Any
  48. def head: LatLong
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  49. def head1: Double
    Definition Classes
    Dbl2sArr
  50. def head2: Double
    Definition Classes
    Dbl2sArr
  51. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  52. def iFlatMap[ArrB <: ArrImut[_]](iInit: Int = 0)(f: (LatLong, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  53. def iFlatMap[ArrB <: ArrImut[_]](f: (LatLong, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  54. def iForAll(p: (LatLong, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  55. def iForeach[U](startIndex: Int = 0)(f: (LatLong, Int) => U): Unit

    foreach with index.

    foreach with index.

    Definition Classes
    ArrayLikeArrayLikeBase
  56. def iForeach[U](f: (LatLong, Int) => U): Unit

    foreach with index starting at 0.

    foreach with index starting at 0.

    Definition Classes
    ArrayLikeArrayLikeBase
  57. def iForeachReverse[U](f: (LatLong, Int) => U): Unit
    Definition Classes
    ArrayLike
  58. def iMap[B, ArrB <: ArrImut[B]](f: (LatLong, Int) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    Specialised map with index to an immutable ArrBase of B.

    Specialised map with index to an immutable ArrBase of B. This method should be overridden in sub classes.

    Definition Classes
    ArrayLike
  59. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  60. def indexOf(elem: LatLong): Int
    Definition Classes
    ArrayLike
  61. def indexWhere(f: (LatLong) => Boolean): Int

    Return the index of the first element where predicate is true, or -1 if predicate not true forall.

    Return the index of the first element where predicate is true, or -1 if predicate not true forall.

    Definition Classes
    ArrayLike
  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. def iterFlatMap[B, ArrB <: ArrImut[B]](f: (LatLong) => Iterable[B])(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  64. def last: LatLong
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  65. def lenStr: 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.

    Definition Classes
    ArrayLikeBase
  66. def map[B, ArrB <: ArrImut[B]](f: (LatLong) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    Specialised map to an immutable ArrBase of B.

    Specialised map to an immutable ArrBase of B.

    Definition Classes
    ArrayLike
  67. def map2To1[B, ArrB <: ArrImut[B]](f: (LatLong, LatLong) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    map 2 elements of A to 1 element of B.

    map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

    Definition Classes
    ArrayLike
  68. def mapCollectGoods[B, BB <: ArrImut[B]](f: (LatLong) => EMon[B])(implicit ev: ArrTBuilder[B, BB]): BB

    maps from A to EMon[B], collects the good values.

    maps from A to EMon[B], collects the good values.

    Definition Classes
    ArrayLike
  69. def mapList[B <: AnyRef](f: (LatLong) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  70. def mapWithAcc[B, ArrB <: ArrImut[B], C](initC: C)(f: (LatLong, C) => (B, C))(implicit ev: ArrTBuilder[B, ArrB]): ArrB
    Definition Classes
    ArrayLike
  71. def max[B >: LatLong](implicit ord: Ordering[B]): LatLong
    Definition Classes
    ArrayLike
  72. def min[B >: LatLong](implicit ord: Ordering[B]): LatLong
    Definition Classes
    ArrayLike
  73. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  74. def modifyWhere(pred: (LatLong) => Boolean, fNewValue: (LatLong) => LatLong): ThisT

    Replaces all instances of the old value that fulfill predicate with the new value.

    Replaces all instances of the old value that fulfill predicate with the new value.

    Definition Classes
    ArrImut
  75. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  76. def pMap[B <: ValueNElem, N <: ValueNsArr[B]](f: (LatLong) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ValueNsArr
  77. def removeFirst(f: (LatLong) => Boolean): ThisT
    Definition Classes
    ArrImut
  78. def replace(oldValue: LatLong, newValue: LatLong): ThisT

    Replaces all instances of the old value with the new value.

    Replaces all instances of the old value with the new value.

    Definition Classes
    ArrImut
  79. def replaceWhere(pred: (LatLong) => Boolean, newValue: LatLong): ThisT

    Replaces all instances of the old value that fulfill predicate with the new value.

    Replaces all instances of the old value that fulfill predicate with the new value.

    Definition Classes
    ArrImut
  80. def returnThis: ThisT

    Method for keeping the typer happy when returning this as an instance of ThisT.

    Method for keeping the typer happy when returning this as an instance of ThisT.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  81. def reverse: ThisT
    Definition Classes
    DblNsArr
  82. def sum(implicit ev: Sumable[LatLong]): LatLong
    Definition Classes
    ArrayLike
  83. def sumBy(f: (LatLong) => Int): Int
    Definition Classes
    ArrayLike
  84. def toList: List[LatLong]
    Definition Classes
    ArrayLike
  85. final def toString(): String
    Definition Classes
    ArrImut → Any
  86. def toStrsCommaFold(fToStr: (LatLong) => String): String
    Definition Classes
    ArrayLike
  87. def toStrsCommaNoSpaceFold(fToStr: (LatLong) => String): String
    Definition Classes
    ArrayLike
  88. def toStrsCommaParenth(fToStr: (LatLong) => String): String
    Definition Classes
    ArrayLike
  89. def toStrsFold(seperator: String, f: (LatLong) => String): String
    Definition Classes
    ArrayLike
  90. def toStrsSemiFold(fToStr: (LatLong) => String): String
    Definition Classes
    ArrayLike
  91. def toStrsSemiParenth(fToStr: (LatLong) => String): String
    Definition Classes
    ArrayLike
  92. def unsafeCopyFromArray(opArray: Array[Double], offset: Int = 0): Unit
    Definition Classes
    DblNsArr
  93. final def unsafeNew(length: Int): ThisT

    This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrImut's final type.

    This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrImut's final type.

    Definition Classes
    DblNsArrArrImut
  94. def unsafeSetElem(index: Int, elem: LatLong): Unit

    Sets / mutates an element in the Arr.

    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.

    Definition Classes
    Dbl2sArrArrImut
  95. def unsafeSetElemSeq(index: Int, elems: Iterable[LatLong]): Unit
    Definition Classes
    ArrImut
  96. def unsafeSetElems(index: Int, elems: LatLong*): Unit

    Sets / mutates elements in the Arr.

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

    Definition Classes
    ArrImut
  97. def unsafeSetHead(value: LatLong): Unit

    Sets / mutates the head element in the Arr.

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

    Definition Classes
    ArrImut
  98. def unsafeSetLast(value: LatLong): Unit

    Sets / mutates the last element in the Arr.

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

    Definition Classes
    ArrImut
  99. def zipMap[B, C, ArrC <: ArrImut[C]](operator: ArrayLike[B])(f: (LatLong, B) => C)(implicit ev: ArrTBuilder[C, ArrC]): ArrC

    Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

    Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

    Definition Classes
    ArrayLike
  100. def zipMap2[B, C, D, ArrD <: ArrImut[D]](operator1: ArrayLike[B], operator2: ArrayLike[C])(f: (LatLong, B, C) => D)(implicit ev: ArrTBuilder[D, ArrD]): ArrD

    Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

    Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

    Definition Classes
    ArrayLike

Inherited from Dbl2sArr[LatLong]

Inherited from DblNsArr[LatLong]

Inherited from ArrayDblBased

Inherited from ValueNsArr[LatLong]

Inherited from ArrImut[LatLong]

Inherited from ArrayLike[LatLong]

Inherited from ArrayLikeBase[ostrat.geom.LatLong @scala.annotation.unchecked.uncheckedVariance]

Inherited from Any

Ungrouped