Packages

final class LinePath extends AnyVal with ArrProdDbl2[Vec2] with Transer with Vec2sLike

Array[Double] based collection class for a LinePath. Conversion to and from the Vec2s class and Polygon class should not entail a runtime cost.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LinePath
  2. Vec2sLike
  3. Transer
  4. ArrProdDbl2
  5. ArrProdDblN
  6. ArrProdHomo
  7. ArrValues
  8. ArrImut
  9. ArrayLike
  10. AnyVal
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LinePath(array: Array[Double])

Type Members

  1. type ThisT = LinePath
    Definition Classes
    LinePathArrProdDbl2ArrProdDblNArrValuesArrImutArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def ++[N <: ArrProdHomo[Vec2]](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
    ArrProdHomo
  4. def :+[N <: ArrProdHomo[Vec2]](operand: Vec2)(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
    ArrProdHomo
  5. def :+(op: Vec2): ThisT
    Definition Classes
    ArrValues
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  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
    ArrProdDblN
  8. def apply(index: Int): Vec2
    Definition Classes
    ArrProdDbl2ArrayLike
  9. def arrLen: Int
    Definition Classes
    ArrProdDblNArrProdHomo
  10. def arrTrans(f: (Vec2) => Vec2): Array[Double]
    Definition Classes
    Vec2sLike
  11. val array: Array[Double]
    Definition Classes
    LinePathArrProdDblN
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. final def buildThis(length: Int): ThisT
    Definition Classes
    ArrProdDblNArrImut
  14. def contains[A1 >: Vec2](elem: A1): Boolean
    Definition Classes
    ArrayLike
  15. def draw(lineWidth: Double, colour: Colour = Colour.Black): LinePathDraw
  16. def eMap[B, BB <: ArrImut[B]](f: (Vec2) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  17. def elem1sArray: Array[Double]
    Definition Classes
    ArrProdDbl2
  18. def elem2sArray: Array[Double]
    Definition Classes
    ArrProdDbl2
  19. def elemBuilder(d1: Double, d2: Double): Vec2

    Method for creating new elements from 2 Doubles.

    Method for creating new elements from 2 Doubles.

    Definition Classes
    LinePathArrProdDbl2
  20. def empty: Boolean
    Definition Classes
    ArrayLike
  21. def existsCount(f: (Vec2) => 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
  22. def fTrans(f: (Vec2) => Vec2): LinePath
    Definition Classes
    LinePathTranser
  23. def foldHeadTail[B](initial: B)(fHead: (B, Vec2) => B)(fTail: (B, Vec2) => B): B
    Definition Classes
    ArrayLike
  24. def foldLeft[B](initial: B)(f: (B, Vec2) => B): B
    Definition Classes
    ArrayLike
  25. def foldTailLeft[B](initial: B)(f: (B, Vec2) => B): B
    Definition Classes
    ArrayLike
  26. def foldWithPrevious[B](initPrevious: Vec2, initAcc: B)(f: (B, Vec2, Vec2) => B): B
    Definition Classes
    ArrProdHomo
  27. def foreach[U](f: (Vec2) => U): Unit
    Definition Classes
    ArrayLike
  28. def foreachArr(f: (Arr[Double]) => Unit): Unit
    Definition Classes
    ArrProdDbl2ArrProdDblN
  29. def foreachEnd(f: (Double, Double) => Unit): Unit
  30. def foreachInit[U](f: (Vec2) => U): Unit
    Definition Classes
    ArrayLike
  31. def foreachPairTail[U](f: (Double, Double) => U): Unit
    Definition Classes
    ArrProdDbl2
  32. def foreachReverse[U](f: (Vec2) => 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
  33. def foreachTail[U](f: (Vec2) => U): Unit
    Definition Classes
    ArrayLike
  34. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  35. def getPair(index: Int): (Double, Double)
    Definition Classes
    ArrProdDbl2
  36. def head: Vec2
    Definition Classes
    ArrayLike
  37. def head1: Double
    Definition Classes
    ArrProdDbl2
  38. def head2: Double
    Definition Classes
    ArrProdDbl2
  39. def iForeach[U](f: (Vec2, Int) => U, startIndex: Int = 0): Unit

    foreach with index.

    foreach with index. The startIndex parameter is placed 2nd to allow it to have a default value of zero.

    Definition Classes
    ArrayLike
  40. def iForeachReverse[U](f: (Vec2, Int) => U): Unit
    Definition Classes
    ArrayLike
  41. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  42. def indexOf(elem: Vec2): Int
    Definition Classes
    ArrayLike
  43. def indexWhere(f: (Vec2) => Boolean): Int

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

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

    Definition Classes
    ArrayLike
  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def iterFlatMap[B, BB <: ArrImut[B]](f: (Vec2) => Iterable[B])(implicit ev: ArrBuild[B, BB]): BB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  46. def last: Vec2
    Definition Classes
    ArrayLike
  47. def lenStr: String
    Definition Classes
    ArrayLike
  48. final def length: Int
    Definition Classes
    ArrProdHomoArrayLike
  49. def lengthFull: Int
    Annotations
    @inline()
  50. def map[B, BB <: ArrImut[B]](f: (Vec2) => B)(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  51. def map2To1[B, BB <: ArrImut[B]](f: (Vec2, Vec2) => B)(implicit ev: ArrBuild[B, BB]): BB

    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
  52. def mapArrSeq[B <: AnyRef](f: (Vec2) => B)(implicit ev: ClassTag[B]): Arr[B]

    Maps to ArrSeq of type B.

    Maps to ArrSeq of type B.

    Definition Classes
    ArrProdHomo
  53. def mapList[B <: AnyRef](f: (Vec2) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  54. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  55. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
  56. def offsetter: ArrOff[Vec2]
    Definition Classes
    ArrImut
  57. def pMap[B, N <: ArrProdHomo[B]](f: (Vec2) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ArrProdHomo
  58. def pStart: Vec2
    Annotations
    @inline()
  59. def productSize: Int
    Definition Classes
    ArrProdDbl2ArrProdHomo
  60. def removeFirst(f: (Vec2) => Boolean): ThisT
    Definition Classes
    ArrImut
  61. def replace(oldValue: Vec2, newValue: Vec2): 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
  62. def returnThis: ThisT
    Definition Classes
    ArrayLike
  63. def toArrs: Arr[Arr[Double]]
    Definition Classes
    ArrProdDbl2
  64. def toList: List[Vec2]
    Definition Classes
    ArrayLike
  65. def toString(): String
    Definition Classes
    ArrProdDblN → Any
  66. def toStrsFold(seperator: String = "", f: (Vec2) => String = _.toString): String
    Definition Classes
    ArrayLike
  67. def typeStr: String
    Definition Classes
    LinePathArrProdHomo
  68. def unsafeArrayCopy(operand: Array[Vec2], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrImut
  69. def unsafeFromArray(array: Array[Double]): LinePath
    Definition Classes
    LinePathArrProdDblN
  70. def unsafeSetElem(index: Int, elem: Vec2): Unit
    Definition Classes
    ArrProdDbl2ArrImut
  71. def unsafeSetElemSeq(index: Int, elems: Iterable[Vec2]): Unit
    Definition Classes
    ArrImut
  72. def unsafeSetElems(index: Int, elems: Vec2*): Unit
    Definition Classes
    ArrImut
  73. def unsafeSetHead(value: Vec2): Unit
    Definition Classes
    ArrImut
  74. def unsafeSetLast(value: Vec2): Unit
    Definition Classes
    ArrImut
  75. def xStart: Double
    Annotations
    @inline()
  76. def yStart: Double
    Annotations
    @inline()

Deprecated Value Members

  1. def toArraySeq(implicit ct: ClassTag[Vec2]): ArraySeq[Vec2]

    transitional method to be removed.

    transitional method to be removed.

    Definition Classes
    ArrayLike
    Annotations
    @deprecated
    Deprecated

Inherited from Vec2sLike

Inherited from Transer

Inherited from ArrProdDbl2[Vec2]

Inherited from ArrProdDblN[Vec2]

Inherited from ArrProdHomo[Vec2]

Inherited from ArrValues[Vec2]

Inherited from ArrImut[Vec2]

Inherited from ArrayLike[Vec2]

Inherited from AnyVal

Inherited from Any

Ungrouped