Pt2Arr

ostrat.geom.Pt2Arr
See thePt2Arr companion object
final class Pt2Arr(val arrayUnsafe: Array[Double]) extends AffinePreserve, Pt2SeqLike, ArrDbl2[Pt2]

The default Array[Double] based collection class for Pt2s. Use Polygon or LinePath to represent those structures. Conversion to and from Polygon class and LinePath class should not entail a runtime cost.

Attributes

Companion
object
Graph
Supertypes
trait ArrDbl2[Pt2]
trait ArrDblN[Pt2]
trait ArrValueN[Pt2]
trait ArrNoParam[Pt2]
trait Arr[Pt2]
trait Sequ[Pt2]
trait Pt2SeqLike
trait SeqLikeDbl2[Pt2]
trait SeqLikeDblN[Pt2]
trait SpecialT
trait PointSeqLike[Pt2]
trait SeqLike[Pt2]
trait GeomElem
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type ThisT = Pt2Arr

Gives the final type of this class.

Gives the final type of this class.

Attributes

Value members

Concrete methods

def fromArray(array: Array[Double]): Pt2Arr
def ptsTrans(f: Pt2 => Pt2): Pt2Arr

Geometric transformation by the function from a 2 dimensional Vector value to a 2 dimensional vector value.

Geometric transformation by the function from a 2 dimensional Vector value to a 2 dimensional vector value.

Attributes

override def seqDefElem(d1: Double, d2: Double): Pt2

Method for creating new data elements from 2 Doubles In the case of ArrDbl2 this will be thee type of the elements of the sequence.

Method for creating new data elements from 2 Doubles In the case of ArrDbl2 this will be thee type of the elements of the sequence.

Attributes

Definition Classes
override def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Attributes

Definition Classes

Inherited methods

final inline override def +%(operand: Pt2): ThisT

append. appends element to this Arr.

append. appends element to this Arr.

Attributes

Definition Classes
Inherited from:
ArrDbl2
final override def ++(operand: ThisT): ThisT

append. Appends an Arr of the same final type of this Arr.

append. Appends an Arr of the same final type of this Arr.

Attributes

Definition Classes
Inherited from:
ArrDblN
override def apply(index: Int): Pt2

Accesses the defining sequence element by a 0 based index.

Accesses the defining sequence element by a 0 based index.

Attributes

Definition Classes
Inherited from:
ArrDbl2
def arrTrans(f: Pt2 => Pt2): Array[Double]

Attributes

Inherited from:
Pt2SeqLike
final def arrayLen: Int

The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.

The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.

Attributes

Inherited from:
SeqLikeDblN
def bestOfGet(init: Pt2)(f1: Pt2 => Boolean)(f2: (Pt2, Pt2) => Boolean): Pt2

Attributes

Inherited from:
Sequ
def collect[B, BB <: Arr[B]](pf: PartialFunction[Pt2, B])(implicit ev: BuilderArrMap[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.

Attributes

Inherited from:
Sequ
def contains[A1 >: Pt2](elem: A1): Boolean

Returns true if this sequence contains a value equal to the parameter value. The passed vvalue for equivlence testing an be a super type of the collection type.

Returns true if this sequence contains a value equal to the parameter value. The passed vvalue for equivlence testing an be a super type of the collection type.

Attributes

Inherited from:
Sequ
def cycleGet(index: Int): Pt2

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.

Attributes

Inherited from:
Sequ
final override def drop(n: Int): ThisT

Attributes

Definition Classes
Inherited from:
ArrDblN
final override def dropRight(n: Int): ThisT

Attributes

Definition Classes
Inherited from:
ArrDblN
override def elemEq(a1: Pt2, a2: Pt2): Boolean

Checks if 2 values of the specifying sequence are equal.

Checks if 2 values of the specifying sequence are equal.

Attributes

Definition Classes
Inherited from:
ArrDbl2
override def elemProdSize: Int

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl2
override 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.

Attributes

Definition Classes
Inherited from:
Sequ
def empty: Boolean

Is this sequence empty?

Is this sequence empty?

Attributes

Inherited from:
Sequ
def exists(f: Pt2 => Boolean): Boolean

Tests if the condition exists for any element of this sequence.

Tests if the condition exists for any element of this sequence.

Attributes

Inherited from:
Sequ
def existsCount(f: Pt2 => Boolean): Int

Counts the number of elements that fulfil the condition A => Boolean

Counts the number of elements that fulfil the condition A => Boolean

Attributes

Inherited from:
Sequ
final override def fElemStr: Pt2 => String

Attributes

Definition Classes
Inherited from:
Pt2SeqLike
def fMax[B](defaultValue: B)(f: Pt2 => 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.

Attributes

Inherited from:
Sequ
def fMin[B](defaultValue: B)(f: Pt2 => 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.

Attributes

Inherited from:
Sequ
final def filter(f: Pt2 => Boolean): ThisT

Attributes

Inherited from:
ArrDblN
def filter[ArrA <: Arr[Pt2]](f: Pt2 => Boolean)(implicit ev: BuilderArrMap[Pt2, ArrA]): ArrA

Attributes

Inherited from:
Sequ
def filterNot[ArrA <: Arr[Pt2]](f: Pt2 => Boolean)(implicit ev: BuilderArrMap[Pt2, ArrA]): ArrA

Attributes

Inherited from:
Sequ

Attributes

Inherited from:
Sequ
def find(f: Pt2 => Boolean): Option[Pt2]

Tries to find te first element of this sequence conforming to the predicate.

Tries to find te first element of this sequence conforming to the predicate.

Attributes

Inherited from:
Sequ
def findGood[B](f: Pt2 => EMon[B]): EMon[B]

Takes a function that returns an EMon and returns the first Good.

Takes a function that returns an EMon and returns the first Good.

Attributes

Inherited from:
Sequ
def findIndex(value: Pt2): OptInt

Find the index of the the first value of this sequence.

Find the index of the the first value of this sequence.

Attributes

Inherited from:
ArrValueN
def flatMap[ArrB <: Arr[_]](f: Pt2 => ArrB)(implicit ev: BuilderArrFlat[ArrB]): ArrB

Specialised flatMap to a Arr.

Specialised flatMap to a Arr.

Attributes

Inherited from:
Sequ
def flatToIterableMap[B, ArrB <: Arr[B]](f: Pt2 => Iterable[B])(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Maps over a function from A to any Iterable and flattens the result into an RArr[A].

Maps over a function from A to any Iterable and flattens the result into an RArr[A].

Attributes

Inherited from:
Sequ
def foldHeadTail[B](initVal: B)(f: Pt2 => B, fAcc: (B, B) => B): B

Attributes

Inherited from:
Sequ
def foldLeft[B](f: (B, Pt2) => B)(implicit ev: DefaultValue[B]): B

Attributes

Inherited from:
Sequ
def foldLeft[B](initial: B)(f: (B, Pt2) => B): B

Folds over this sequence starting with the initial value

Folds over this sequence starting with the initial value

Attributes

Inherited from:
Sequ
def foldStr(f: Pt2 => String, seperator: String): String

Folds left to a String accumulator with an initial value of the empty string. The first parameter is a function from A tp String. The second parameter is a separator String the 2nd and subsequent A => String values.

Folds left to a String accumulator with an initial value of the empty string. The first parameter is a function from A tp String. The second parameter is a separator String the 2nd and subsequent A => String values.

Attributes

Inherited from:
Sequ
def foldWithPrevious[B](initPrevious: Pt2, initAcc: B)(f: (B, Pt2, Pt2) => B): B

Attributes

Inherited from:
ArrValueN
def forAll(p: Pt2 => Boolean): Boolean

Returns true if the predicate holds true for all values of this sequence, else retruns false.

Returns true if the predicate holds true for all values of this sequence, else retruns false.

Attributes

Inherited from:
Sequ
def foreach[U](f: Pt2 => U): Unit

Performs a side effecting function on each element of this sequence in order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of this sequence in order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

Inherited from:
Sequ
override def foreachArr(f: DblArr => Unit): Unit

Not sure about this method.

Not sure about this method.

Attributes

Definition Classes
Inherited from:
ArrDbl2
def getPair(index: Int): (Double, Double)

Attributes

Inherited from:
ArrDbl2
def head: Pt2

The first element of this sequence.

The first element of this sequence.

Attributes

Inherited from:
Sequ
def head1: Double

Attributes

Inherited from:
ArrDbl2
def head2: Double

Attributes

Inherited from:
ArrDbl2

Returns the Some of the first element unless the sequence is empty in which case it returns None.

Returns the Some of the first element unless the sequence is empty in which case it returns None.

Attributes

Inherited from:
Sequ
def headFold[B](noHead: => B)(ifHead: Pt2 => 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.

Attributes

Inherited from:
Sequ
def headFoldToString[B](noHead: => String): String

Folds over the non existence / existence of a head element. If the sequence is nonEmpty applies toString to head element else returns the noHead parameter string.

Folds over the non existence / existence of a head element. If the sequence is nonEmpty applies toString to head element else returns the noHead parameter string.

Attributes

Inherited from:
Sequ
def headOrNone: Any

Attributes

Inherited from:
Arr
def iFlatMap[ArrB <: Arr[_]](iInit: Int)(f: (Int, Pt2) => ArrB)(implicit build: BuilderArrFlat[ArrB]): ArrB

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Attributes

Inherited from:
Sequ
def iFlatMap[ArrB <: Arr[_]](f: (Int, Pt2) => ArrB)(implicit build: BuilderArrFlat[ArrB]): ArrB

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Attributes

Inherited from:
Sequ
def iForAll(p: (Int, Pt2) => Boolean): Boolean

Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

Inherited from:
Sequ
def iForeach[U](startIndex: Int)(f: (Int, Pt2) => U): Unit

Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

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

Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

Inherited from:
Sequ
def iMap[B, ArrB <: Arr[B]](startindex: Int)(f: (Int, Pt2) => B)(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. Ideally this method should be overridden in sub classes.

Attributes

Inherited from:
Sequ
def iMap[B, ArrB <: Arr[B]](f: (Int, Pt2) => B)(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. This method should be overridden in sub classes.

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature. This method should be overridden in sub classes.

Attributes

Inherited from:
Sequ
def ifHead[U](f: Pt2 => U): Unit

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

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

Attributes

Inherited from:
Sequ
def indexCycle(index: Int): Pt2

like the apply method accesses the defining sequence element by a 0 based index, but cycles around for indexes less that 0 and equal or greater than index length.

like the apply method accesses the defining sequence element by a 0 based index, but cycles around for indexes less that 0 and equal or greater than index length.

Attributes

Inherited from:
Sequ
def indexMapTo[B, BB <: SeqLike[B]](iFrom: Int, iTo: Int, iStep: Int)(f: Pt2 => B)(implicit build: BuilderSeqLikeMap[B, BB]): BB

A map operation on the range of indexed values, where the return type of the SeqLike is explicitly given by the the first parameter.

A map operation on the range of indexed values, where the return type of the SeqLike is explicitly given by the the first parameter.

Attributes

Inherited from:
Sequ
def indexOf(elem: Pt2): Int

Attributes

Inherited from:
Sequ
def indexToForeach[U](iFrom: Int, iTo: Int, iStep: Int)(f: Pt2 => U): Unit

Performs a side effecting function on each element of the range of index values for this sequence in order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of the range of index values for this sequence in order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

Inherited from:
Sequ
def indexWhere(f: Pt2 => 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.

Attributes

Inherited from:
Sequ
final def init: ThisT

Attributes

Inherited from:
ArrNoParam
def initForeach[U](f: Pt2 => U): Unit

Performs a side effecting function on each element of this sequence excluding the last. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of this sequence excluding the last. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

Inherited from:
Sequ
def last: Pt2

The last element of this sequence.

The last element of this sequence.

Attributes

Inherited from:
Sequ

Returns the Some of the last element unless the sequence is empty in which case it returns None.

Returns the Some of the last element unless the sequence is empty in which case it returns None.

Attributes

Inherited from:
Sequ
def lastFold[B](noLast: => B)(ifLast: Pt2 => 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.

Attributes

Inherited from:
Sequ
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.

Attributes

Inherited from:
Sequ
final override def length: 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

Attributes

Definition Classes
Inherited from:
ArrDbl2
def map[B, ArrB <: Arr[B]](f: Pt2 => B)(implicit build: BuilderArrMap[B, ArrB]): ArrB

Specialised map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Specialised map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def map2To1[B, ArrB <: Arr[B]](f: (Pt2, Pt2) => B)(implicit ev: BuilderArrMap[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.

Attributes

Inherited from:
Sequ
def mapArray[B](f: Pt2 => B)(implicit ct: ClassTag[B]): Array[B]

Maps to an Array.

Maps to an Array.

Attributes

Inherited from:
Sequ
def mapCollectGoods[B, BB <: Arr[B]](f: Pt2 => EMon[B])(implicit ev: BuilderArrMap[B, BB]): BB

maps from A to EMon[B], collects the good values.

maps from A to EMon[B], collects the good values.

Attributes

Inherited from:
Sequ
def mapEMon[B, BB](ev: BuilderCollMap[B, BB])(f: Pt2 => EMon[B]): EMon[BB]

Map from A => EMon[B]. There is a name overload that implicitly takes a narrower BuilderArrMap as the second parameter list.

Map from A => EMon[B]. There is a name overload that implicitly takes a narrower BuilderArrMap as the second parameter list.

Attributes

Inherited from:
Sequ
def mapEMon[B, ArrB <: Arr[B]](f: Pt2 => EMon[B])(implicit ev: BuilderArrMap[B, ArrB]): EMon[ArrB]

Map from A => EMon[B]. implicitly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderCollMap as the first parameter list.

Map from A => EMon[B]. implicitly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderCollMap as the first parameter list.

Attributes

Inherited from:
Sequ
def mapEMonList[B](f: Pt2 => EMon[B]): EMon[List[B]]

Map from A => B, retuening an EMon of List.

Map from A => B, retuening an EMon of List.

Attributes

Inherited from:
Sequ
def mapList[B <: AnyRef](f: Pt2 => B): List[B]

maps ValueProduct collection to List

maps ValueProduct collection to List

Attributes

Inherited from:
Sequ
def mapPair[B1, ArrB1 <: Arr[B1], B2, B <: PairFinalA1Elem[B1, B2], ArrB <: PairArrFinalA1[B1, ArrB1, B2, B]](f1: Pt2 => B1)(f2: Pt2 => B2)(implicit build: BuilderArrPairMap[B1, ArrB1, B2, B, ArrB]): ArrB

Specialised map to an immutable PairArrFinalA1 of B. Applies the supplied function to every element of this sequence.

Specialised map to an immutable PairArrFinalA1 of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def mapTo[B, BB <: SeqLike[B]](build: BuilderSeqLikeMap[B, BB])(f: Pt2 => B): BB

A map operation where the return type of the SeqLike is explicitly given by the the second type parameter.

A map operation where the return type of the SeqLike is explicitly given by the the second type parameter.

Attributes

Inherited from:
Sequ
def mapUniqueGood[B](f: Pt2 => EMon[B]): EMon[B]

Takes a function from A to EMon[B]. If the function applied to eqch element produces a single Good, it is returned else returns Bad.

Takes a function from A to EMon[B]. If the function applied to eqch element produces a single Good, it is returned else returns Bad.

Attributes

Inherited from:
Sequ
def mapWithAcc[B, ArrB <: Arr[B], C](initC: C)(f: (C, Pt2) => (B, C))(implicit ev: BuilderArrMap[B, ArrB]): ArrB

Attributes

Inherited from:
Sequ
def max[B >: Pt2](implicit ord: Ordering[B]): Pt2

Gives the maximum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Gives the maximum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Attributes

Inherited from:
Sequ
def min[B >: Pt2](implicit ord: Ordering[B]): Pt2

Gives the minimum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Gives the minimum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Attributes

Inherited from:
Sequ
def mkString(separator: String): String

Not sure about this method.

Not sure about this method.

Attributes

Inherited from:
Sequ
def modifyAll(pred: Pt2 => Boolean, fNewValue: Pt2 => Pt2): ThisT

Modifies all instances of the old value that fulfill predicate, with a new value by applying the parameter function.

Modifies all instances of the old value that fulfill predicate, with a new value by applying the parameter function.

Attributes

Inherited from:
ArrNoParam
override def negX: ThisT

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

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

Attributes

Definition Classes
Inherited from:
SimilarPreserve
override def negY: ThisT

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

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

Attributes

Definition Classes
Inherited from:
SimilarPreserve

Is this sequence non empty?

Is this sequence non empty?

Attributes

Inherited from:
Sequ
def optAllMap[B, ArrB <: Arr[B]](f: Pt2 => Option[B])(implicit build: BuilderArrMap[B, ArrB]): Option[ArrB]

Takes a map function from A to Option[B] but only returns the [[Arr] of B if all the elements map to a Some. Hence the ArrB if returned will be the same length as this sequence.

Takes a map function from A to Option[B] but only returns the [[Arr] of B if all the elements map to a Some. Hence the ArrB if returned will be the same length as this sequence.

Attributes

Inherited from:
Sequ
def optMap[B, ArrB <: Arr[B]](f: Pt2 => Option[B])(implicit build: BuilderArrMap[B, ArrB]): ArrB

Specialised opt map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Specialised opt map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def partition[ArrA <: Arr[Pt2]](f: Pt2 => Boolean)(implicit build: BuilderArrMap[Pt2, ArrA]): (ArrA, ArrA)

Attributes

Inherited from:
Sequ
override def prolign(matrix: ProlignMatrix): ThisT

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

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

Attributes

Definition Classes
Inherited from:
ProlignPreserve
override def reflect(lineLike: LineLike): ThisT

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.

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.

Attributes

Definition Classes
Inherited from:
SimilarPreserve

Attributes

Inherited from:
ArrNoParam
def replace(oldValue: Pt2, newValue: Pt2): ThisT

Replaces all instances of the old value with the new value.

Replaces all instances of the old value with the new value.

Attributes

Inherited from:
ArrNoParam
def replaceAll(pred: Pt2 => Boolean, newValue: Pt2): 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.

Attributes

Inherited from:
ArrNoParam

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.

Attributes

Inherited from:
Sequ
final def reverse: ThisT

Reverses the order of the elements of this sequence.

Reverses the order of the elements of this sequence.

Attributes

Inherited from:
ArrDblN
def reverseForeach[U](f: Pt2 => U): Unit

Performs a side effecting function on each element of this sequence in reverse order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Performs a side effecting function on each element of this sequence in reverse order. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.

Attributes

Inherited from:
Sequ
def reverseIForeach[U](f: (Int, Pt2) => U): Unit

Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.

Attributes

Inherited from:
Sequ
override def rotate(angle: AngleVec): ThisT

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

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

Attributes

Definition Classes
Inherited from:
SimilarPreserve
override def rotate180: ThisT

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

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

Attributes

Definition Classes
Inherited from:
SimilarPreserve
override def rotate270: ThisT

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
SimilarPreserve
override def rotate90: ThisT

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
SimilarPreserve
override def scale(operand: Double): ThisT

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.

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.

Attributes

Definition Classes
Inherited from:
ProlignPreserve
override def scaleXY(xOperand: Double, yOperand: Double): ThisT

Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
AffinePreserve
override def setElemUnsafe(index: Int, newElem: Pt2): Unit

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl2
def setElemsUnsafe(index: Int, elems: Pt2*): 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.

Attributes

Inherited from:
SeqLike
override def shearX(operand: Double): ThisT

Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
AffinePreserve
override def shearY(operand: Double): ThisT

Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.

Attributes

Definition Classes
Inherited from:
AffinePreserve
override def slateXY(xDelta: Double, yDelta: Double): ThisT

Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.

Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.

Attributes

Definition Classes
Inherited from:
ProlignPreserve
def sortBy(f: (Pt2, Pt2) => Boolean)(implicit build: BuilderArrMap[Pt2, ThisT]): ThisT

Returns a new Arr sorted from least to greatest. Takes a function detrmining if the first value is greater than the second.

Returns a new Arr sorted from least to greatest. Takes a function detrmining if the first value is greater than the second.

Attributes

Inherited from:
Arr
final inline override def ssForeach[U](f: Pt2 => U): Unit

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

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

Attributes

Definition Classes
Inherited from:
Sequ
def sum(implicit ev: Sumable[Pt2]): Pt2

Attributes

Inherited from:
Sequ
def sumBy(f: Pt2 => Int): Int

Sums aaccumulating the results of the A => Int function.

Sums aaccumulating the results of the A => Int function.

Attributes

Inherited from:
Sequ
final def tail: ThisT

Attributes

Inherited from:
ArrNoParam
def tailForeach[U](f: Pt2 => U): Unit

Foreachs over the tail of this sequence. Performs a side effecting function on each element of this sequence excluding the first.

Foreachs over the tail of this sequence. Performs a side effecting function on each element of this sequence excluding the first.

Attributes

Inherited from:
Sequ
def tailPairsForeach[U](f: (Double, Double) => U): Unit

Foreachs over the Double pairs of the tail of this Arr.

Foreachs over the Double pairs of the tail of this Arr.

Attributes

Inherited from:
ArrDbl2
def tailfold[B](initial: B)(f: (B, Pt2) => B): B

foldLeft over the tail of this sequence.

foldLeft over the tail of this sequence.

Attributes

Inherited from:
Sequ
def toList: List[Pt2]

Converts this SeqGen to a list.

Converts this SeqGen to a list.

Attributes

Inherited from:
Sequ
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SeqLike -> Any
Inherited from:
SeqLike
def toStrsCommaFold(fToStr: Pt2 => String): String

Attributes

Inherited from:
Sequ

Attributes

Inherited from:
Sequ
def toStrsCommaParenth(fToStr: Pt2 => String): String

Attributes

Inherited from:
Sequ
def toStrsSemiFold(fToStr: Pt2 => String): String

Attributes

Inherited from:
Sequ
def toStrsSemiParenth(fToStr: Pt2 => String): String

Attributes

Inherited from:
Sequ

Attributes

Inherited from:
Sequ
def unsafeSameSize(length: Int): ThisT

Attributes

Inherited from:
SeqLikeDblN
def unsafeSetElemSeq(index: Int, elems: Iterable[Pt2]): Unit

Attributes

Inherited from:
Arr
def unsafeSetHead(value: Pt2): 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.

Attributes

Inherited from:
Arr
def unsafeSetLast(value: Pt2): 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.

Attributes

Inherited from:
Arr
def zipMap[B, C, ArrC <: Arr[C]](operator: Sequ[B])(f: (Pt2, B) => C)(implicit ev: BuilderArrMap[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.

Attributes

Inherited from:
Sequ
def zipMap2[B, C, D, ArrD <: Arr[D]](operator1: Sequ[B], operator2: Sequ[C])(f: (Pt2, B, C) => D)(implicit ev: BuilderArrMap[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.

Attributes

Inherited from:
Sequ

Concrete fields