Vec2MArr

class Vec2MArr(val arrayUnsafe: Array[Double]) extends ArrDbl2s[Vec2M]
trait ArrBase[Vec2M]
trait SeqGen[Vec2M]
trait DataGen[Vec2M]
class Object
trait Matchable
class Any

Type members

Types

override

Value members

Concrete methods

override
def dataElem(d1: Double, d2: Double): Vec2M
Definition Classes
override
def fElemStr: Vec2M => String
Definition Classes
override
def typeStr: String
Definition Classes
override
def unsafeFromArray(array: Array[Double]): Vec2MArr
Definition Classes

Inherited methods

def ++[N <: ArrValueNs[Vec2M]](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
ArrValueNs
def :+[N <: ArrValueNs[Vec2M]](operand: Vec2M)(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
ArrValueNs
def append(op: Vec2M): 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
ArrDbl2s
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
ArrDblNs
@inline
def apply(index: Int): Vec2M

apply method accesses the individual elements of the sequence by 0 based index.

apply method accesses the individual elements of the sequence by 0 based index.

Inherited from
SeqGen
override
def arrLen: Int
Definition Classes
Inherited from
DataDblNs
def collect[B, BB <: ArrBase[B]](pf: PartialFunction[Vec2M, B])(implicit ev: ArrBuilder[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
SeqGen
def collectList[B](pf: PartialFunction[Vec2M, 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
SeqGen
def contains[A1 >: Vec2M](elem: A1): Boolean
Inherited from
SeqGen
@inline
def cycleGet(index: Int): Vec2M

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
SeqGen
def dataForeach[U](f: Vec2M => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
def dataForeachPairTail[U](f: (Double, Double) => U): Unit
Inherited from
DataDbl2s
def dataIForeach[U](f: (Vec2M, Int) => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: Vec2M => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
DataGen
def dataTailForeach[U](f: Vec2M => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from
DataGen
def dataTailfold[B](initial: B)(f: (B, Vec2M) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
def eMap[B, ArrB <: ArrBase[B]](f: Vec2M => EMon[B])(implicit ev: ArrBuilder[B, ArrB]): EMon[ArrB]
Inherited from
SeqGen
def eMapList[B](f: Vec2M => EMon[B]): EMon[List[B]]
Inherited from
SeqGen
def elem1sArray: Array[Double]
Inherited from
DataDbl2s
def elem2sArray: Array[Double]
Inherited from
DataDbl2s
override
def elemProdSize: Int
Definition Classes
Inherited from
DataDbl2s
def elemsLenStr: 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
DataGen
final override
def elemsNum: 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

Definition Classes
Inherited from
DataValueNs
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
DataGen
@inline
def empty: Boolean

Is this sequence empty?

Is this sequence empty?

Inherited from
SeqGen
def existsCount(f: Vec2M => 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
SeqGen
def fMax[B](defaultValue: B)(f: Vec2M => 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
SeqGen
def fMin[B](defaultValue: B)(f: Vec2M => 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
SeqGen
def filter[ArrA <: ArrBase[Vec2M]](f: Vec2M => Boolean)(implicit ev: ArrBuilder[Vec2M, ArrA]): ArrA
Inherited from
SeqGen
def filterNot[ArrA <: ArrBase[Vec2M]](f: Vec2M => Boolean)(implicit ev: ArrBuilder[Vec2M, ArrA]): ArrA
Inherited from
SeqGen
def filterToList(f: Vec2M => Boolean): List[Vec2M]
Inherited from
SeqGen
def find(f: Vec2M => Boolean): Option[Vec2M]
Inherited from
ArrBase
def flatMap[ArrB <: ArrBase[_]](f: Vec2M => ArrB)(implicit ev: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap to an immutable Arr.

Specialised flatMap to an immutable Arr.

Inherited from
SeqGen
def foldHeadTail[B](initial: B)(fHead: (B, Vec2M) => B)(fTail: (B, Vec2M) => B): B
Inherited from
SeqGen
def foldLeft[B](initial: B)(f: (B, Vec2M) => B): B
Inherited from
SeqGen
def foldWithPrevious[B](initPrevious: Vec2M, initAcc: B)(f: (B, Vec2M, Vec2M) => B): B
Inherited from
ArrValueNs
def forAll(p: Vec2M => Boolean): Boolean
Inherited from
SeqGen
def foreach[U](f: Vec2M => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
SeqGen
override
def foreachArr(f: Dbls => Unit): Unit
Definition Classes
Inherited from
ArrDbl2s
def foreachInit[U](f: Vec2M => U): Unit
Inherited from
SeqGen
def foreachPairTail[U](f: (Double, Double) => U): Unit
Inherited from
ArrDbl2s
def foreachReverse[U](f: Vec2M => 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
SeqGen
def getPair(index: Int): (Double, Double)
Inherited from
ArrDbl2s
@inline
def head: Vec2M

The first element of this sequence.

The first element of this sequence.

Inherited from
SeqGen
def head1: Double
Inherited from
ArrDbl2s
def head2: Double
Inherited from
ArrDbl2s
def headFold[B](noHead: => B)(ifHead: Vec2M => B): B

Folds over the non existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Folds over the non existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Inherited from
SeqGen
def iFlatMap[ArrB <: ArrBase[_]](iInit: Int)(f: (Vec2M, Int) => ArrB)(implicit build: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap with index to an immutable Arr.

Specialised flatMap with index to an immutable Arr.

Inherited from
SeqGen
def iFlatMap[ArrB <: ArrBase[_]](f: (Vec2M, Int) => ArrB)(implicit build: ArrFlatBuilder[ArrB]): ArrB

Specialised flatMap with index to an immutable Arr.

Specialised flatMap with index to an immutable Arr.

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

Performs a side effecting function on each element of this sequence with an index starting at the given integer parameter.

Performs a side effecting function on each element of this sequence with an index starting at the given integer parameter.

Inherited from
SeqGen
def iForeach[U](f: (Vec2M, Int) => U): Unit

Performs a side effecting function on each element of this sequence with an index starting at 0.

Performs a side effecting function on each element of this sequence with an index starting at 0.

Inherited from
SeqGen
def iForeachReverse[U](f: (Vec2M, Int) => U): Unit
Inherited from
SeqGen
def iMap[B, ArrB <: ArrBase[B]](f: (Vec2M, Int) => B)(implicit ev: ArrBuilder[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
SeqGen
def ifHead[U](f: Vec2M => U): Unit

if this SeqGen is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

if this SeqGen is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

Inherited from
SeqGen
override
def indexData(index: Int): Vec2M
Definition Classes
Inherited from
DataDbl2s
def indexOf(elem: Vec2M): Int
Inherited from
SeqGen
def indexWhere(f: Vec2M => 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
SeqGen
def iterFlatMap[B, ArrB <: ArrBase[B]](f: Vec2M => Iterable[B])(implicit ev: ArrBuilder[B, ArrB]): ArrB

FlatMaps over a function from A to any Iterable.

FlatMaps over a function from A to any Iterable.

Inherited from
SeqGen
@inline
def last: Vec2M

The last element of this sequence.

The last element of this sequence.

Inherited from
SeqGen
def lastFold[B](noLast: => B)(ifLast: Vec2M => B): B

Folds over the non existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Folds over the non existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Inherited from
SeqGen
def map[B, ArrB <: ArrBase[B]](f: Vec2M => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
SeqGen
def map2To1[B, ArrB <: ArrBase[B]](f: (Vec2M, Vec2M) => B)(implicit ev: ArrBuilder[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
SeqGen
def mapCollectGoods[B, BB <: ArrBase[B]](f: Vec2M => EMon[B])(implicit ev: ArrBuilder[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
SeqGen
def mapList[B <: AnyRef](f: Vec2M => B): List[B]

maps ValueProduct collection to List

maps ValueProduct collection to List

Inherited from
SeqGen
def mapWithAcc[B, ArrB <: ArrBase[B], C](initC: C)(f: (Vec2M, C) => (B, C))(implicit ev: ArrBuilder[B, ArrB]): ArrB
Inherited from
SeqGen
def max[B >: Vec2M](implicit ord: Ordering[B]): Vec2M
Inherited from
SeqGen
def min[B >: Vec2M](implicit ord: Ordering[B]): Vec2M
Inherited from
SeqGen
def mkString(seperator: String): String

Not sure about this method.

Not sure about this method.

Inherited from
SeqGen
def modifyWhere(pred: Vec2M => Boolean, fNewValue: Vec2M => Vec2M): 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
ArrBase
@inline
def nonEmpty: Boolean

Is this sequence non empty?

Is this sequence non empty?

Inherited from
SeqGen
def removeFirst(f: Vec2M => Boolean): ThisT

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
ArrBase
def replace(oldValue: Vec2M, newValue: Vec2M): 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
ArrBase
def replaceWhere(pred: Vec2M => Boolean, newValue: Vec2M): 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
ArrBase
@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
SeqGen
Inherited from
ArrDblNs
override
Definition Classes
Inherited from
DataDblNs
def sum(implicit ev: Sumable[Vec2M]): Vec2M
Inherited from
SeqGen
def sumBy(f: Vec2M => Int): Int
Inherited from
SeqGen
def tailForeach[U](f: Vec2M => U): Unit

Foreachs over the tail of this sequence.

Foreachs over the tail of this sequence.

Inherited from
SeqGen
def tailfold[B](initial: B)(f: (B, Vec2M) => B): B

foldLeft over the tail of this sequence.

foldLeft over the tail of this sequence.

Inherited from
SeqGen
def toList: List[Vec2M]
Inherited from
SeqGen
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
def toStrsCommaFold(fToStr: Vec2M => String): String
Inherited from
SeqGen
def toStrsCommaNoSpaceFold(fToStr: Vec2M => String): String
Inherited from
SeqGen
def toStrsCommaParenth(fToStr: Vec2M => String): String
Inherited from
SeqGen
def toStrsFold(seperator: String, f: Vec2M => String): String
Inherited from
SeqGen
def toStrsSemiFold(fToStr: Vec2M => String): String
Inherited from
SeqGen
def toStrsSemiParenth(fToStr: Vec2M => String): String
Inherited from
SeqGen
final override
def unsafeSameSize(length: Int): ThisT
Definition Classes
Inherited from
DataDblNs
override
def unsafeSetElem(index: Int, elem: Vec2M): Unit
Definition Classes
Inherited from
DataDbl2s
def unsafeSetElemSeq(index: Int, elems: Iterable[Vec2M]): Unit
Inherited from
ArrBase
def unsafeSetElems(index: Int, elems: Vec2M*): 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
DataGen
def unsafeSetHead(value: Vec2M): 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
ArrBase
def unsafeSetLast(value: Vec2M): 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
ArrBase
def zipMap[B, C, ArrC <: ArrBase[C]](operator: SeqGen[B])(f: (Vec2M, B) => C)(implicit ev: ArrBuilder[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
SeqGen
def zipMap2[B, C, D, ArrD <: ArrBase[D]](operator1: SeqGen[B], operator2: SeqGen[C])(f: (Vec2M, B, C) => D)(implicit ev: ArrBuilder[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
SeqGen

Concrete fields

override
val arrayUnsafe: Array[Double]