Packages

class LineSegs extends ArrProdDbl4[LineSeg] with AffinePreserve

Compact immutable Array[Double] based collection class for LineSegs. Sline is the library's term for a mathematical straight line segment, but what in common parlance is often just referred to as a line.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LineSegs
  2. AffinePreserve
  3. SimilarPreserve
  4. ProlignPreserve
  5. GeomElem
  6. Serializable
  7. Product
  8. Equals
  9. ArrProdDbl4
  10. ArrProdDblN
  11. ArrayDblBased
  12. ArrProdHomo
  13. ArrBase
  14. ArrayLike
  15. ArrayLikeBase
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Type Members

  1. type ThisT = LineSegs

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

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

    Definition Classes
    LineSegsAffinePreserveSimilarPreserveProlignPreserveArrProdDblNArrProdHomoArrBaseArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++[N <: ArrProdHomo[LineSeg]](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[LineSeg]](operand: LineSeg)(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 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
  7. def apply(index: Int): LineSeg
    Definition Classes
    ArrProdDbl4ArrayLike
  8. def arrLen: Int
    Definition Classes
    ArrProdDblNArrProdHomo
  9. val arrayUnsafe: Array[Double]
    Definition Classes
    LineSegsArrayDblBased
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def canEqual(that: Any): Boolean
    Definition Classes
    LineSegs → Equals
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. def collect[B, BB <: ArrBase[B]](pf: PartialFunction[LineSeg, 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
  14. def collectList[B](pf: PartialFunction[LineSeg, 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
  15. def contains[A1 >: LineSeg](elem: A1): Boolean
    Definition Classes
    ArrayLike
  16. def draw(lineWidth: Double, colour: Colour = Colour.Black): LinesDraw
  17. def eMap[B, BB <: ArrBase[B]](f: (LineSeg) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  18. def eMapList[B](f: (LineSeg) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  19. 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
    ArrBase
  20. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. def existsCount(f: (LineSeg) => 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
  24. def fElemStr: (LineSeg) => String
    Definition Classes
    LineSegsArrBase
  25. def fHeadElse[B](noHead: => B)(ifHead: (LineSeg) => B): B
    Definition Classes
    ArrayLike
  26. def fMax[B](f: (LineSeg) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  27. def fMin[B](f: (LineSeg) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  28. def fTrans(f: (Vec2) => Vec2): LineSegs
    Definition Classes
    LineSegsProlignPreserve
  29. def filter[AA <: ArrBase[LineSeg]](f: (LineSeg) => Boolean)(implicit ev: ArrBuild[LineSeg, AA]): AA
    Definition Classes
    ArrayLike
  30. def filterNot[AA <: ArrBase[LineSeg]](f: (LineSeg) => Boolean)(implicit ev: ArrBuild[LineSeg, AA]): AA
    Definition Classes
    ArrayLike
  31. def filterToList(f: (LineSeg) => Boolean): List[LineSeg]
    Definition Classes
    ArrayLike
  32. def find(f: (LineSeg) => Boolean): Option[LineSeg]
    Definition Classes
    ArrBase
  33. def flatMap[BB <: ArrBase[_]](f: (LineSeg) => BB)(implicit ev: ArrFlatBuild[BB]): BB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  34. def foldHeadTail[B](initial: B)(fHead: (B, LineSeg) => B)(fTail: (B, LineSeg) => B): B
    Definition Classes
    ArrayLike
  35. def foldLeft[B](initial: B)(f: (B, LineSeg) => B): B
    Definition Classes
    ArrayLike
  36. def foldTailLeft[B](initial: B)(f: (B, LineSeg) => B): B
    Definition Classes
    ArrayLike
  37. def foldWithPrevious[B](initPrevious: LineSeg, initAcc: B)(f: (B, LineSeg, LineSeg) => B): B
    Definition Classes
    ArrProdHomo
  38. def forAll(p: (LineSeg) => Boolean): Boolean
    Definition Classes
    ArrayLike
  39. def foreach[U](f: (LineSeg) => 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
  40. def foreachArr(f: (Dbls) => Unit): Unit
    Definition Classes
    ArrProdDbl4ArrProdDblN
  41. def foreachInit[U](f: (LineSeg) => U): Unit
    Definition Classes
    ArrayLike
  42. def foreachReverse[U](f: (LineSeg) => 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
  43. def foreachTail[U](f: (LineSeg) => U): Unit
    Definition Classes
    ArrayLike
  44. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  46. def head: LineSeg
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  47. def head1: Double
    Definition Classes
    ArrProdDbl4
  48. def head2: Double
    Definition Classes
    ArrProdDbl4
  49. def head3: Double
    Definition Classes
    ArrProdDbl4
  50. def head4: Double
    Definition Classes
    ArrProdDbl4
  51. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  52. def iFlatMap[BB <: ArrBase[_]](iInit: Int = 0)(f: (LineSeg, 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
  53. def iFlatMap[BB <: ArrBase[_]](f: (LineSeg, 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
  54. def iForAll(p: (LineSeg, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  55. def iForeach[U](f: (LineSeg, 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
  56. def iForeachReverse[U](f: (LineSeg, Int) => U): Unit
    Definition Classes
    ArrayLike
  57. def iMap[B, BB <: ArrBase[B]](f: (LineSeg, 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
  58. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  59. def indexOf(elem: LineSeg): Int
    Definition Classes
    ArrayLike
  60. def indexWhere(f: (LineSeg) => 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
  61. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  62. def iterFlatMap[B, BB <: ArrBase[B]](f: (LineSeg) => 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
  63. def last: LineSeg
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  64. 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
  65. 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
  66. def map[B, BB <: ArrBase[B]](f: (LineSeg) => 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
  67. def map2To1[B, BB <: ArrBase[B]](f: (LineSeg, LineSeg) => 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
  68. def mapCollectGoods[B, BB <: ArrBase[B]](f: (LineSeg) => 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
  69. def mapList[B <: AnyRef](f: (LineSeg) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  70. def mapWithAcc[B, BB <: ArrBase[B], C](initC: C)(f: (LineSeg, C) => (B, C))(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  71. def max[B >: LineSeg](implicit ord: Ordering[B]): LineSeg
    Definition Classes
    ArrayLike
  72. def min[B >: LineSeg](implicit ord: Ordering[B]): LineSeg
    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: (LineSeg) => Boolean, fNewValue: (LineSeg) => LineSeg): 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
  75. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  76. def negX: ThisT

    Mirror, reflection 2D geometric transformation across the Y axis by negating X.

    Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.

    Definition Classes
    SimilarPreserveProlignPreserveGeomElem
  77. def negY: ThisT

    Mirror, reflection 2D geometric transformation across the X axis by negating y.

    Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.

    Definition Classes
    SimilarPreserveProlignPreserveGeomElem
  78. def newElem(d1: Double, d2: Double, d3: Double, d4: Double): LineSeg
    Definition Classes
    LineSegsArrProdDbl4
  79. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  80. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  81. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  82. def pMap[B, N <: ArrProdHomo[B]](f: (LineSeg) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ArrProdHomo
  83. def productArity: Int
    Definition Classes
    LineSegs → Product
  84. def productElement(n: Int): Any
    Definition Classes
    LineSegs → Product
  85. def productElementName(n: Int): String
    Definition Classes
    Product
  86. def productElementNames: Iterator[String]
    Definition Classes
    Product
  87. def productIterator: Iterator[Any]
    Definition Classes
    Product
  88. def productPrefix: String
    Definition Classes
    Product
  89. def productSize: Int
    Definition Classes
    ArrProdDbl4ArrProdHomo
  90. def prolign(matrix: ProlignMatrix): ThisT

    2D Transformation using a ProlignMatrix.

    2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.

    Definition Classes
    ProlignPreserveGeomElem
  91. def ptInPolygon(pt: Vec2): Boolean
  92. def reflect(lineLike: LineLike): ThisT

    Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem.

    Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in sub classes and traits.

    Definition Classes
    SimilarPreserveGeomElem
  93. def removeFirst(f: (LineSeg) => Boolean): ThisT
    Definition Classes
    ArrBase
  94. def replace(oldValue: LineSeg, newValue: LineSeg): 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
  95. def replaceWhere(pred: (LineSeg) => Boolean, newValue: LineSeg): 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
  96. def returnThis: ThisT
    Definition Classes
    ArrayLike
  97. def rotate(angle: Angle): ThisT

    Rotation 2D geometric transformation on a GeomElem.

    Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in sub classes and traits.

    Definition Classes
    SimilarPreserveGeomElem
  98. def rotate180: ThisT

    Rotate 180 degrees 2D geometric transformation.

    Rotate 180 degrees 2D geometric transformation. The return type will be narrowed in sub traits / classes.

    Definition Classes
    ProlignPreserveGeomElem
  99. def rotate270: ThisT

    Rotate 270 degrees anti clockwise or rotate 90 degrees clockwise 2D geometric transformation.

    Rotate 270 degrees anti clockwise or rotate 90 degrees clockwise 2D geometric transformation. The return type will be narrowed in sub traits / classes.

    Definition Classes
    ProlignPreserveGeomElem
  100. def rotate90: ThisT

    Rotate 90 degrees anti clockwise or rotate 270 degrees clockwise 2D geometric transformation.

    Rotate 90 degrees anti clockwise or rotate 270 degrees clockwise 2D geometric transformation. The return type will be narrowed in sub traits / classes.

    Definition Classes
    ProlignPreserveGeomElem
  101. def scale(operand: Double): ThisT

    Uniform 2D geometric scaling transformation.

    Uniform 2D geometric 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. The Return type will be narrowed in sub traits / classes.

    Definition Classes
    ProlignPreserveGeomElem
  102. def slate(xOffset: Double, yOffset: Double): ThisT

    Translate 2D geometric transformation.

    Translate 2D geometric transformation. The Return type will be narrowed in sub traits.

    Definition Classes
    ProlignPreserveGeomElem
  103. def slate(offset: Vec2): ThisT

    Translate 2D geometric transformation on this GeomElem.

    Translate 2D geometric transformation on this GeomElem. The Return type will be narrowed in sub traits and classes.

    Definition Classes
    ProlignPreserveGeomElem
  104. def sumBy(f: (LineSeg) => Int): Int
    Definition Classes
    ArrayLike
  105. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  106. def toList: List[LineSeg]
    Definition Classes
    ArrayLike
  107. final def toString(): String
    Definition Classes
    ArrBase → Any
  108. def toStrsCommaFold(fToStr: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  109. def toStrsCommaNoSpaceFold(fToStr: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  110. def toStrsCommaParenth(fToStr: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  111. def toStrsFold(seperator: String, f: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  112. def toStrsSemiFold(fToStr: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  113. def toStrsSemiParenth(fToStr: (LineSeg) => String): String
    Definition Classes
    ArrayLike
  114. def typeStr: String
    Definition Classes
    LineSegsArrBase
  115. def unsafeArrayCopy(operand: Array[LineSeg], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrBase
  116. def unsafeCopyFromArray(opArray: Array[Double], offset: Int = 0): Unit
    Definition Classes
    ArrProdDblN
  117. def unsafeFromArray(array: Array[Double]): LineSegs
    Definition Classes
    LineSegsArrProdDblN
  118. final def unsafeNew(length: Int): ThisT
    Definition Classes
    ArrProdDblNArrBase
  119. final def unsafeSetElem(index: Int, elem: LineSeg): Unit
    Definition Classes
    ArrProdDbl4ArrBase
  120. def unsafeSetElemSeq(index: Int, elems: Iterable[LineSeg]): Unit
    Definition Classes
    ArrBase
  121. def unsafeSetElems(index: Int, elems: LineSeg*): Unit
    Definition Classes
    ArrBase
  122. def unsafeSetHead(value: LineSeg): Unit
    Definition Classes
    ArrBase
  123. def unsafeSetLast(value: LineSeg): Unit
    Definition Classes
    ArrBase
  124. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  125. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  126. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  127. def xShear(operand: Double): ThisT

    Shear 2D geometric transformation along the X Axis on a GeomElem.

    Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits.

    Definition Classes
    AffinePreserveGeomElem
  128. def xyScale(xOperand: Double, yOperand: Double): ThisT

    XY scaling 2D geometric transformation on a GeomElem.

    XY scaling 2D geometric transformation on a GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

    Definition Classes
    AffinePreserveGeomElem
  129. def yShear(operand: Double): ThisT

    Shear 2D geometric transformation along the Y Axis on a GeomElem.

    Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits.

    Definition Classes
    AffinePreserveGeomElem

Deprecated Value Members

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

Inherited from AffinePreserve

Inherited from SimilarPreserve

Inherited from ProlignPreserve

Inherited from GeomElem

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ArrProdDbl4[LineSeg]

Inherited from ArrProdDblN[LineSeg]

Inherited from ArrayDblBased

Inherited from ArrProdHomo[LineSeg]

Inherited from ArrBase[LineSeg]

Inherited from ArrayLike[LineSeg]

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

Inherited from AnyRef

Inherited from Any

Ungrouped