Pt2sLike

trait Pt2sLike extends DataDbl2s[Pt2]

The purpose of this trait is to provide the helper method for Vec2 transformations.

trait DataDbl2s[Pt2]
trait DataDblNs[Pt2]
trait DataImut[Pt2]
trait DataGen[Pt2]
class Object
trait Matchable
class Any
class LinePath
class Pt2s

Type members

Inherited types

type ThisT <: DataDblNs[A]
Inherited from
DataDblNs

Value members

Concrete methods

def arrTrans(f: Pt2 => Pt2): Array[Double]
final override
def dataElem(d1: Double, d2: Double): Pt2
Definition Classes
override
def fElemStr: Pt2 => String
Definition Classes

Inherited methods

override
def arrLen: Int
Definition Classes
Inherited from
DataDblNs
def arrayUnsafe: Array[Double]
Inherited from
ArrayDblBacked
def dataForeach[U](f: Pt2 => 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: (Pt2, 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: Pt2 => 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: Pt2 => 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, Pt2) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
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
override
def indexData(index: Int): Pt2
Definition Classes
Inherited from
DataDbl2s
override
Definition Classes
Inherited from
DataDblNs
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Inherited from
DataGen
def unsafeFromArray(array: Array[Double]): ThisT
Inherited from
DataDblNs
final override
def unsafeSameSize(length: Int): ThisT
Definition Classes
Inherited from
DataDblNs
override
def unsafeSetElem(index: Int, elem: Pt2): Unit
Definition Classes
Inherited from
DataDbl2s
def unsafeSetElems(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.

Inherited from
DataGen