Packages

class LinePath extends ArrProdDbl2[Vec2] with AffinePreserve with Vec2sLikeProdDbl2

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. Vec2sLikeProdDbl2
  3. Vec2sLike
  4. AffinePreserve
  5. SimilarPreserve
  6. ProlignPreserve
  7. TransElem
  8. Serializable
  9. Product
  10. Equals
  11. ArrProdDbl2
  12. ArrProdDblN
  13. ArrayDblBased
  14. ArrProdHomo
  15. ArrBase
  16. ArrayLike
  17. ArrayLikeBase
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Type Members

  1. type ThisT = LinePath

    The most narrow type preserved in some 2d geometric transformations.

    The most narrow type preserved in some 2d geometric transformations.

    Definition Classes
    LinePathAffinePreserveSimilarPreserveProlignPreserveArrProdDbl2ArrProdDblNArrProdHomoArrBaseArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → 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. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def append(op: Vec2): 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
    ArrProdDbl2
  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
    Vec2sLikeProdDbl2
  11. val arrayUnsafe: Array[Double]
    Definition Classes
    LinePathArrayDblBased
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def canEqual(that: Any): Boolean
    Definition Classes
    LinePath → Equals
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  15. def collect[B, BB <: ArrBase[B]](pf: PartialFunction[Vec2, B])(implicit ev: ArrBuild[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
  16. def collectList[B](pf: PartialFunction[Vec2, 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
  17. def contains[A1 >: Vec2](elem: A1): Boolean
    Definition Classes
    ArrayLike
  18. def draw(lineWidth: Double, colour: Colour = Colour.Black): LinePathDraw
  19. def eMap[B, BB <: ArrBase[B]](f: (Vec2) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  20. def eMapList[B](f: (Vec2) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  21. def elem1sArray: Array[Double]
    Definition Classes
    ArrProdDbl2
  22. def elem2sArray: Array[Double]
    Definition Classes
    ArrProdDbl2
  23. final 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
    Vec2sLikeProdDbl2ArrProdDbl2
  24. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. 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
  28. def fHeadElse[B](noHead: => B)(ifHead: (Vec2) => B): B
    Definition Classes
    ArrayLike
  29. def fMax[B](f: (Vec2) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  30. def fMin[B](f: (Vec2) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  31. def fTrans(f: (Vec2) => Vec2): LinePath
    Definition Classes
    LinePathProlignPreserve
  32. def filter[AA <: ArrBase[Vec2]](f: (Vec2) => Boolean)(implicit ev: ArrBuild[Vec2, AA]): AA
    Definition Classes
    ArrayLike
  33. def filterNot[AA <: ArrBase[Vec2]](f: (Vec2) => Boolean)(implicit ev: ArrBuild[Vec2, AA]): AA
    Definition Classes
    ArrayLike
  34. def filterToList(f: (Vec2) => Boolean): List[Vec2]
    Definition Classes
    ArrayLike
  35. def find(f: (Vec2) => Boolean): Option[Vec2]
    Definition Classes
    ArrBase
  36. def flatMap[BB <: ArrBase[_]](f: (Vec2) => BB)(implicit ev: ArrFlatBuild[BB]): BB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  37. def foldHeadTail[B](initial: B)(fHead: (B, Vec2) => B)(fTail: (B, Vec2) => B): B
    Definition Classes
    ArrayLike
  38. def foldLeft[B](initial: B)(f: (B, Vec2) => B): B
    Definition Classes
    Vec2sLikeProdDbl2ArrayLikeVec2sLike
  39. def foldTailLeft[B](initial: B)(f: (B, Vec2) => B): B
    Definition Classes
    ArrayLike
  40. def foldWithPrevious[B](initPrevious: Vec2, initAcc: B)(f: (B, Vec2, Vec2) => B): B
    Definition Classes
    ArrProdHomo
  41. def forAll(p: (Vec2) => Boolean): Boolean
    Definition Classes
    ArrayLike
  42. def foreach[U](f: (Vec2) => U): Unit

    Performs the effectful function on each member of the collection.

    Performs the effectful function on each member of the collection.

    Definition Classes
    ArrayLikeArrayLikeBase
  43. def foreachArr(f: (Dbls) => Unit): Unit
    Definition Classes
    ArrProdDbl2ArrProdDblN
  44. def foreachEnd(f: (Double, Double) => Unit): Unit
  45. def foreachInit[U](f: (Vec2) => U): Unit
    Definition Classes
    ArrayLike
  46. def foreachPairTail[U](f: (Double, Double) => U): Unit
    Definition Classes
    ArrProdDbl2
  47. 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
  48. def foreachTail[U](f: (Vec2) => U): Unit
    Definition Classes
    ArrayLike
  49. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  50. def getPair(index: Int): (Double, Double)
    Definition Classes
    ArrProdDbl2
  51. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  52. def head: Vec2
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  53. def head1: Double
    Definition Classes
    ArrProdDbl2
  54. def head2: Double
    Definition Classes
    ArrProdDbl2
  55. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  56. def iFlatMap[BB <: ArrBase[_]](iInit: Int = 0)(f: (Vec2, Int) => BB)(implicit build: ArrFlatBuild[BB]): BB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  57. def iFlatMap[BB <: ArrBase[_]](f: (Vec2, Int) => BB)(implicit build: ArrFlatBuild[BB]): BB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  58. def iForAll(p: (Vec2, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  59. 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
  60. def iForeachReverse[U](f: (Vec2, Int) => U): Unit
    Definition Classes
    ArrayLike
  61. def iMap[B, BB <: ArrBase[B]](f: (Vec2, Int) => B)(implicit ev: ArrBuild[B, BB]): BB

    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
  62. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  63. def indexOf(elem: Vec2): Int
    Definition Classes
    ArrayLike
  64. def indexWhere(f: (Vec2) => 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
  65. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  66. def iterFlatMap[B, BB <: ArrBase[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
  67. def last: Vec2
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  68. 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
  69. final def length: Int

    The number of elements in the collection.

    The number of elements in the collection. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array maybe longer by a multiple of this number.

    Definition Classes
    ArrProdHomoArrayLikeBase
  70. def lengthFull: Int
    Annotations
    @inline()
  71. def map[B, BB <: ArrBase[B]](f: (Vec2) => B)(implicit ev: ArrBuild[B, BB]): BB

    Specialised map to an immutable ArrBase of B.

    Specialised map to an immutable ArrBase of B.

    Definition Classes
    ArrayLike
  72. def map2To1[B, BB <: ArrBase[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
  73. def mapCollectGoods[B, BB <: ArrBase[B]](f: (Vec2) => EMon[B])(implicit ev: ArrBuild[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
  74. def mapList[B <: AnyRef](f: (Vec2) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  75. def mapWithAcc[B, BB <: ArrBase[B], C](initC: C)(f: (Vec2, C) => (B, C))(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  76. def max[B >: Vec2](implicit ord: Ordering[B]): Vec2
    Definition Classes
    ArrayLike
  77. def min[B >: Vec2](implicit ord: Ordering[B]): Vec2
    Definition Classes
    ArrayLike
  78. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  79. def modifyWhere(pred: (Vec2) => Boolean, fNewValue: (Vec2) => Vec2): 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
    ArrBase
  80. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  81. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  82. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  83. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  84. def pMap[B, N <: ArrProdHomo[B]](f: (Vec2) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ArrProdHomo
  85. def pStart: Vec2
    Annotations
    @inline()
  86. def productArity: Int
    Definition Classes
    LinePath → Product
  87. def productElement(n: Int): Any
    Definition Classes
    LinePath → Product
  88. def productElementName(n: Int): String
    Definition Classes
    Product
  89. def productElementNames: Iterator[String]
    Definition Classes
    Product
  90. def productIterator: Iterator[Any]
    Definition Classes
    Product
  91. def productPrefix: String
    Definition Classes
    Product
  92. def productSize: Int
    Definition Classes
    ArrProdDbl2ArrProdHomo
  93. def prolign(matrix: ProlignMatrix): ThisT
    Definition Classes
    ProlignPreserveTransElem
  94. def reflect(lineSeg: Sline): ThisT
    Definition Classes
    SimilarPreserveTransElem
  95. def reflect(line: Line): ThisT
    Definition Classes
    SimilarPreserveTransElem
  96. def reflectX: ThisT

    Mirror, reflection transformation across the X axis.

    Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

    Definition Classes
    SimilarPreserveProlignPreserveTransElem
  97. def reflectXOffset(yOffset: Double): ThisT

    Mirror, reflection transformation across the line y = yOffset, which is parallel to the X axis.

    Mirror, reflection transformation across the line y = yOffset, which is parallel to the X axis.

    Definition Classes
    SimilarPreserveProlignPreserveTransElem
  98. def reflectY: ThisT

    Mirror, reflection transformation across the X axis.

    Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

    Definition Classes
    SimilarPreserveProlignPreserveTransElem
  99. def reflectYOffset(xOffset: Double): ThisT

    Mirror, reflection transformation across the line x = xOffset, which is parallel to the X axis.

    Mirror, reflection transformation across the line x = xOffset, which is parallel to the X axis.

    Definition Classes
    SimilarPreserveProlignPreserveTransElem
  100. def removeFirst(f: (Vec2) => Boolean): ThisT
    Definition Classes
    ArrBase
  101. 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
    ArrBase
  102. def replaceWhere(pred: (Vec2) => Boolean, newValue: Vec2): 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
    ArrBase
  103. def returnThis: ThisT
    Definition Classes
    ArrayLike
  104. def rotate(angle: Angle): ThisT
    Definition Classes
    SimilarPreserve
  105. def rotate180: ThisT

    Rotates 180 degrees or + Pi radians.

    Rotates 180 degrees or + Pi radians.

    Definition Classes
    ProlignPreserveTransElem
  106. def rotate270: ThisT

    Rotates 90 degrees or Pi/2 radians clockwise.

    Rotates 90 degrees or Pi/2 radians clockwise.

    Definition Classes
    ProlignPreserveTransElem
  107. def rotate90: ThisT

    Rotates 90 degrees or Pi / 2 radians anticlockwise.

    Rotates 90 degrees or Pi / 2 radians anticlockwise.

    Definition Classes
    ProlignPreserveTransElem
  108. def rotateRadians(radians: Double): ThisT
    Definition Classes
    SimilarPreserveTransElem
  109. def scale(operand: Double): ThisT

    Uniform scaling transformation.

    Uniform scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling.

    Definition Classes
    ProlignPreserveTransElem
  110. def scaleXY(xOperand: Double, yOperand: Double): ThisT
    Definition Classes
    AffinePreserveTransElem
  111. def shearX(operand: Double): ThisT
    Definition Classes
    AffinePreserveTransElem
  112. def shearY(operand: Double): ThisT
    Definition Classes
    AffinePreserveTransElem
  113. def slate(xOffset: Double, yOffset: Double): ThisT

    Translate geometric transformation.

    Translate geometric transformation.

    Definition Classes
    ProlignPreserveTransElem
  114. def slate(offset: Vec2): ThisT

    Translate geometric transformation.

    Translate geometric transformation.

    Definition Classes
    ProlignPreserveTransElem
  115. def sumBy(f: (Vec2) => Int): Int
    Definition Classes
    ArrayLike
  116. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  117. def toList: List[Vec2]
    Definition Classes
    ArrayLike
  118. def toString(): String
    Definition Classes
    ArrProdDblN → Any
  119. def toStrsCommaFold(fToStr: (Vec2) => String): String
    Definition Classes
    ArrayLike
  120. def toStrsCommaNoSpaceFold(fToStr: (Vec2) => String): String
    Definition Classes
    ArrayLike
  121. def toStrsCommaParenth(fToStr: (Vec2) => String): String
    Definition Classes
    ArrayLike
  122. def toStrsFold(seperator: String, f: (Vec2) => String): String
    Definition Classes
    ArrayLike
  123. def toStrsSemiFold(fToStr: (Vec2) => String): String
    Definition Classes
    ArrayLike
  124. def toStrsSemiParenth(fToStr: (Vec2) => String): String
    Definition Classes
    ArrayLike
  125. def typeStr: String
    Definition Classes
    LinePathArrProdHomo
  126. def unsafeArrayCopy(operand: Array[Vec2], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrBase
  127. def unsafeCopyFromArray(opArray: Array[Double], offset: Int = 0): Unit
    Definition Classes
    ArrProdDblN
  128. def unsafeFromArray(array: Array[Double]): LinePath
    Definition Classes
    LinePathArrProdDblN
  129. final def unsafeNew(length: Int): ThisT
    Definition Classes
    ArrProdDblNArrBase
  130. def unsafeSetElem(index: Int, elem: Vec2): Unit
    Definition Classes
    ArrProdDbl2ArrBase
  131. def unsafeSetElemSeq(index: Int, elems: Iterable[Vec2]): Unit
    Definition Classes
    ArrBase
  132. def unsafeSetElems(index: Int, elems: Vec2*): Unit
    Definition Classes
    ArrBase
  133. def unsafeSetHead(value: Vec2): Unit
    Definition Classes
    ArrBase
  134. def unsafeSetLast(value: Vec2): Unit
    Definition Classes
    ArrBase
  135. def vertsMap[A, ArrT <: ArrBase[A]](f: (Vec2) => A)(implicit build: ArrBuild[A, ArrT]): ArrT
    Definition Classes
    Vec2sLike
  136. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  137. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  138. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  139. def xStart: Double
    Annotations
    @inline()
  140. def yStart: Double
    Annotations
    @inline()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Vec2sLikeProdDbl2

Inherited from Vec2sLike

Inherited from AffinePreserve

Inherited from SimilarPreserve

Inherited from ProlignPreserve

Inherited from TransElem

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ArrProdDbl2[Vec2]

Inherited from ArrProdDblN[Vec2]

Inherited from ArrayDblBased

Inherited from ArrProdHomo[Vec2]

Inherited from ArrBase[Vec2]

Inherited from ArrayLike[Vec2]

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

Inherited from AnyRef

Inherited from Any

Ungrouped