PolygonLL

final class PolygonLL(val arrayUnsafe: Array[Double]) extends AnyVal with LatLongsLike

A latitude-longitude polygon. A quasi polygon 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 Polygons that span an arc of greater than 90 degrees as this may break the algorithms. preferably keep the arcs significantly smaller.

Companion
object
class AnyVal
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

override def typeStr: String
Definition Classes
override def unsafeFromArray(array: Array[Double]): PolygonLL
Definition Classes

Inherited methods

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

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.

Inherited from
ValueNsArr
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.

Inherited from
ValueNsArr
def append(op: LatLong): ThisT

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

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

Inherited from
Dbl2sArr
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.

Inherited from
DblNsArr
def apply(index: Int): LatLong
Inherited from
Dbl2sArr
def arrLen: Int
Inherited from
DblNsArr
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.

Inherited from
ArrayLike
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.

Inherited from
ArrayLike
def contains[A1 >: LatLong](elem: A1): Boolean
Inherited from
ArrayLike
@inline
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. Accepts even negative integers as an index value without throwing an exception.

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.

Inherited from
ArrayLike
def eMap[B, ArrB <: ArrImut[B]](f: LatLong => EMon[B])(implicit ev: ArrTBuilder[B, ArrB]): EMon[ArrB]
Inherited from
ArrayLike
def eMapList[B](f: LatLong => EMon[B]): EMon[List[B]]
Inherited from
ArrayLike
def elem1sArray: Array[Double]
Inherited from
Dbl2sArr
def elem2sArray: Array[Double]
Inherited from
Dbl2sArr
final override def elemBuilder(d1: Double, d2: Double): LatLong
Definition Classes
Inherited from
LatLongsLike
override def elemProductNum: Int
Definition Classes
Inherited from
Dbl2sArr
final def elemsLen: 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

Inherited from
ValueNsArr
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
ArrImut
@inline
def empty: Boolean
Inherited from
ArrayLike
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

Inherited from
ArrayLike
final override def fElemStr: LatLong => String
Definition Classes
Inherited from
LatLongsLike
def fHeadElse[B](noHead: => B)(ifHead: LatLong => B): B
Inherited from
ArrayLike
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.

Inherited from
ArrayLike
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.

Inherited from
ArrayLike
def filter[ArrA <: ArrImut[LatLong]](f: LatLong => Boolean)(implicit ev: ArrTBuilder[LatLong, ArrA]): ArrA
Inherited from
ArrayLike
def filterNot[ArrA <: ArrImut[LatLong]](f: LatLong => Boolean)(implicit ev: ArrTBuilder[LatLong, ArrA]): ArrA
Inherited from
ArrayLike
def filterToList(f: LatLong => Boolean): List[LatLong]
Inherited from
ArrayLike
def find(f: LatLong => Boolean): Option[LatLong]
Inherited from
ArrImut
def flatMap[ArrB <: ArrImut[_]](f: LatLong => ArrB)(implicit ev: ArrTFlatBuilder[ArrB]): ArrB

Specialised flatMap to an immutable Arr.

Specialised flatMap to an immutable Arr.

Inherited from
ArrayLike
def foldHeadTail[B](initial: B)(fHead: (B, LatLong) => B)(fTail: (B, LatLong) => B): B
Inherited from
ArrayLike
def foldLeft[B](initial: B)(f: (B, LatLong) => B): B
Inherited from
ArrayLike
def foldTailLeft[B](initial: B)(f: (B, LatLong) => B): B
Inherited from
ArrayLike
def foldWithPrevious[B](initPrevious: LatLong, initAcc: B)(f: (B, LatLong, LatLong) => B): B
Inherited from
ValueNsArr
def forAll(p: LatLong => Boolean): Boolean
Inherited from
ArrayLike
def foreach[U](f: LatLong => U): Unit
Inherited from
ArrayLike
override def foreachArr(f: Dbls => Unit): Unit
Definition Classes
Inherited from
Dbl2sArr
def foreachInit[U](f: LatLong => U): Unit
Inherited from
ArrayLike
def foreachPairTail[U](f: (Double, Double) => U): Unit
Inherited from
Dbl2sArr
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.

Inherited from
ArrayLike
def foreachTail[U](f: LatLong => U): Unit
Inherited from
ArrayLike
def getPair(index: Int): (Double, Double)
Inherited from
Dbl2sArr
@inline
Inherited from
ArrayLike
def head1: Double
Inherited from
Dbl2sArr
def head2: Double
Inherited from
Dbl2sArr
def headToStringElse(ifEmptyString: String): String
Inherited from
ArrayLike
def iFlatMap[ArrB <: ArrImut[_]](iInit: Int)(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.

Inherited from
ArrayLike
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.

Inherited from
ArrayLike
def iForAll(p: (LatLong, Int) => Boolean): Boolean
Inherited from
ArrayLike
def iForeach[U](startIndex: Int)(f: (LatLong, Int) => U): Unit

foreach with index.

foreach with index.

Inherited from
ArrayLike
override def iForeach[U](f: (LatLong, Int) => U): Unit
Definition Classes
Inherited from
ArrayLike
def iForeachReverse[U](f: (LatLong, Int) => U): Unit
Inherited from
ArrayLike
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. This method should be overridden in sub classes.

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

Inherited from
ArrayLike
def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
Inherited from
ArrayLike
def indexOf(elem: LatLong): Int
Inherited from
ArrayLike
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.

Inherited from
ArrayLike
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.

Inherited from
ArrayLike
@inline
Inherited from
ArrayLike
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.

Inherited from
ArrayLikeBase
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.

Inherited from
ArrayLike
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. Ignores the last element on a collection of odd numbered length.

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

Inherited from
ArrayLike
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.

Inherited from
ArrayLike
def mapList[B <: AnyRef](f: LatLong => B): List[B]

maps ValueProduct collection to List

maps ValueProduct collection to List

Inherited from
ArrayLike
def mapWithAcc[B, ArrB <: ArrImut[B], C](initC: C)(f: (LatLong, C) => (B, C))(implicit ev: ArrTBuilder[B, ArrB]): ArrB
Inherited from
ArrayLike
def max[B >: LatLong](implicit ord: Ordering[B]): LatLong
Inherited from
ArrayLike
def min[B >: LatLong](implicit ord: Ordering[B]): LatLong
Inherited from
ArrayLike
def mkString(seperator: String): String

Not sure about this method.

Not sure about this method.

Inherited from
ArrayLike
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.

Inherited from
ArrImut
@inline
def nonEmpty: Boolean
Inherited from
ArrayLike
def pMap[B <: ValueNElem, N <: ValueNsArr[B]](f: LatLong => B)(implicit factory: Int => N): N
Inherited from
ValueNsArr
def removeFirst(f: LatLong => Boolean): ThisT
Inherited from
ArrImut
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.

Inherited from
ArrImut
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.

Inherited from
ArrImut
@inline

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.

Inherited from
ArrayLike
Inherited from
DblNsArr
def sum(implicit ev: Sumable[LatLong]): LatLong
Inherited from
ArrayLike
def sumBy(f: LatLong => Int): Int
Inherited from
ArrayLike
def toList: List[LatLong]
Inherited from
ArrayLike
final override def toString: String
Definition Classes
ArrImut -> Any
Inherited from
ArrImut
def toStrsCommaFold(fToStr: LatLong => String): String
Inherited from
ArrayLike
def toStrsCommaNoSpaceFold(fToStr: LatLong => String): String
Inherited from
ArrayLike
def toStrsCommaParenth(fToStr: LatLong => String): String
Inherited from
ArrayLike
def toStrsFold(seperator: String, f: LatLong => String): String
Inherited from
ArrayLike
def toStrsSemiFold(fToStr: LatLong => String): String
Inherited from
ArrayLike
def toStrsSemiParenth(fToStr: LatLong => String): String
Inherited from
ArrayLike
def unsafeCopyFromArray(opArray: Array[Double], offset: Int): Unit
Inherited from
DblNsArr
final override def unsafeNew(length: Int): ThisT
Definition Classes
Inherited from
DblNsArr
override def unsafeSetElem(index: Int, elem: LatLong): Unit
Definition Classes
Inherited from
Dbl2sArr
def unsafeSetElemSeq(index: Int, elems: Iterable[LatLong]): Unit
Inherited from
ArrImut
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
ArrImut
def unsafeSetHead(value: LatLong): Unit

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.

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.

Inherited from
ArrImut
def unsafeSetLast(value: LatLong): Unit

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.

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.

Inherited from
ArrImut
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.

Inherited from
ArrayLike
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.

Inherited from
ArrayLike

Concrete fields

val arrayUnsafe: Array[Double]