Packages

final class Vec3s extends AnyVal with ArrProdDbl3[Vec3]

An immutable flat efficient Array backed sequence collection class of 3 dimensional scalar vectors.

Linear Supertypes
ArrProdDbl3[Vec3], ArrProdDblN[Vec3], ArrayDblBased, ArrProdHomo[Vec3], ArrBase[Vec3], ArrayLike[Vec3], ArrayLikeBase[ostrat.geom.Vec3 @scala.annotation.unchecked.uncheckedVariance], AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vec3s
  2. ArrProdDbl3
  3. ArrProdDblN
  4. ArrayDblBased
  5. ArrProdHomo
  6. ArrBase
  7. ArrayLike
  8. ArrayLikeBase
  9. AnyVal
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Type Members

  1. type ThisT = Vec3s
    Definition Classes
    Vec3sArrProdDblNArrProdHomoArrBaseArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def ++[N <: ArrProdHomo[Vec3]](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[Vec3]](operand: Vec3)(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
    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): Vec3
    Definition Classes
    ArrProdDbl3ArrayLike
  8. def arrLen: Int
    Definition Classes
    ArrProdDblNArrProdHomo
  9. val arrayUnsafe: Array[Double]
    Definition Classes
    Vec3sArrayDblBased
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def collect[B, BB <: ArrBase[B]](pf: PartialFunction[Vec3, 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
  12. def collectList[B](pf: PartialFunction[Vec3, 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 >: Vec3](elem: A1): Boolean
    Definition Classes
    ArrayLike
  14. def eMap[B, BB <: ArrBase[B]](f: (Vec3) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  15. def eMapList[B](f: (Vec3) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  16. 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
  17. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  18. def existsCount(f: (Vec3) => 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
  19. def fElemStr: (Vec3) => String
    Definition Classes
    Vec3sArrBase
  20. def fHeadElse[B](noHead: => B)(ifHead: (Vec3) => B): B
    Definition Classes
    ArrayLike
  21. def fMax[B](f: (Vec3) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  22. def fMin[B](f: (Vec3) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  23. def filter[AA <: ArrBase[Vec3]](f: (Vec3) => Boolean)(implicit ev: ArrBuild[Vec3, AA]): AA
    Definition Classes
    ArrayLike
  24. def filterNot[AA <: ArrBase[Vec3]](f: (Vec3) => Boolean)(implicit ev: ArrBuild[Vec3, AA]): AA
    Definition Classes
    ArrayLike
  25. def filterToList(f: (Vec3) => Boolean): List[Vec3]
    Definition Classes
    ArrayLike
  26. def find(f: (Vec3) => Boolean): Option[Vec3]
    Definition Classes
    ArrBase
  27. def flatMap[BB <: ArrBase[_]](f: (Vec3) => BB)(implicit ev: ArrFlatBuild[BB]): BB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

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

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  62. def mapWithAcc[B, BB <: ArrBase[B], C](initC: C)(f: (Vec3, C) => (B, C))(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  63. def max[B >: Vec3](implicit ord: Ordering[B]): Vec3
    Definition Classes
    ArrayLike
  64. def min[B >: Vec3](implicit ord: Ordering[B]): Vec3
    Definition Classes
    ArrayLike
  65. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  66. def modifyWhere(pred: (Vec3) => Boolean, fNewValue: (Vec3) => Vec3): 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
  67. def newElem(d1: Double, d2: Double, d3: Double): Vec3
    Definition Classes
    Vec3sArrProdDbl3
  68. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  69. def pMap[B, N <: ArrProdHomo[B]](f: (Vec3) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ArrProdHomo
  70. def productSize: Int
    Definition Classes
    ArrProdDbl3ArrProdHomo
  71. def removeFirst(f: (Vec3) => Boolean): ThisT
    Definition Classes
    ArrBase
  72. def replace(oldValue: Vec3, newValue: Vec3): 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
  73. def replaceWhere(pred: (Vec3) => Boolean, newValue: Vec3): 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
  74. def returnThis: ThisT
    Definition Classes
    ArrayLike
  75. def sumBy(f: (Vec3) => Int): Int
    Definition Classes
    ArrayLike
  76. def toList: List[Vec3]
    Definition Classes
    ArrayLike
  77. final def toString(): String
    Definition Classes
    ArrBase → Any
  78. def toStrsCommaFold(fToStr: (Vec3) => String): String
    Definition Classes
    ArrayLike
  79. def toStrsCommaNoSpaceFold(fToStr: (Vec3) => String): String
    Definition Classes
    ArrayLike
  80. def toStrsCommaParenth(fToStr: (Vec3) => String): String
    Definition Classes
    ArrayLike
  81. def toStrsFold(seperator: String, f: (Vec3) => String): String
    Definition Classes
    ArrayLike
  82. def toStrsSemiFold(fToStr: (Vec3) => String): String
    Definition Classes
    ArrayLike
  83. def toStrsSemiParenth(fToStr: (Vec3) => String): String
    Definition Classes
    ArrayLike
  84. def typeStr: String
    Definition Classes
    Vec3sArrBase
  85. def unsafeArrayCopy(operand: Array[Vec3], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrBase
  86. def unsafeCopyFromArray(opArray: Array[Double], offset: Int = 0): Unit
    Definition Classes
    ArrProdDblN
  87. def unsafeFromArray(array: Array[Double]): Vec3s
    Definition Classes
    Vec3sArrProdDblN
  88. final def unsafeNew(length: Int): ThisT
    Definition Classes
    ArrProdDblNArrBase
  89. def unsafeSetElem(index: Int, elem: Vec3): Unit
    Definition Classes
    ArrProdDbl3ArrBase
  90. def unsafeSetElemSeq(index: Int, elems: Iterable[Vec3]): Unit
    Definition Classes
    ArrBase
  91. def unsafeSetElems(index: Int, elems: Vec3*): Unit
    Definition Classes
    ArrBase
  92. def unsafeSetHead(value: Vec3): Unit
    Definition Classes
    ArrBase
  93. def unsafeSetLast(value: Vec3): Unit
    Definition Classes
    ArrBase

Inherited from ArrProdDbl3[Vec3]

Inherited from ArrProdDblN[Vec3]

Inherited from ArrayDblBased

Inherited from ArrProdHomo[Vec3]

Inherited from ArrBase[Vec3]

Inherited from ArrayLike[Vec3]

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

Inherited from AnyVal

Inherited from Any

Ungrouped