PolygonInt2s

trait PolygonInt2s[VT <: ElemInt2] extends PolygonIntNs[VT] with DataInt2s[VT]
trait DataInt2s[VT]
trait PolygonIntNs[VT]
trait DataIntNs[VT]
trait PolygonValueN[VT]
trait DataValueNs[VT]
trait DataImut[VT]
trait DataGen[VT]
trait PolygonLike[VT]
class Any
class PolygonHC

Type members

Inherited types

type ThisT <: DataIntNs[A]
Inherited from
DataIntNs

Value members

Inherited methods

def arrLen: Int

The length of the Array[Int] backing array.

The length of the Array[Int] backing array.

Inherited from
DataIntNs
def arrayUnsafe: Array[Int]

The backing Array[Int] of this collection class. End users should not normally need to interact with this directly.

The backing Array[Int] of this collection class. End users should not normally need to interact with this directly.

Inherited from
DataIntNs
def dataElem(i1: Int, i2: Int): VT
Inherited from
DataInt2s
def dataForeach[U](f: VT => 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 dataIForeach[U](f: (VT, 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
def dataLast: VT
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: VT => 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: VT => 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, VT) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
override
def elemProdSize: Int
Definition Classes
Inherited from
DataInt2s
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
def fElemStr: VT => String
Inherited from
DataGen
final override
def indexData(index: Int): VT
Definition Classes
Inherited from
DataInt2s
def map[B <: ElemValueN, BB <: PolygonLike[B]](f: VT => B)(implicit build: PolygonBuilder[B, BB]): BB

Map this collection of data elements to PolygonLike class of type BB.

Map this collection of data elements to PolygonLike class of type BB.

Inherited from
PolygonLike
override
Definition Classes
Inherited from
DataIntNs
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[Int]): ThisT
Inherited from
DataIntNs
final override
def unsafeSameSize(length: Int): ThisT

Method for creating a new Array[Int] backed collection class of this collection class's final type.

Method for creating a new Array[Int] backed collection class of this collection class's final type.

Definition Classes
Inherited from
DataIntNs
final override
def unsafeSetElem(index: Int, elem: VT): Unit
Definition Classes
Inherited from
DataInt2s
def unsafeSetElems(index: Int, elems: VT*): 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 vert(index: Int): VT

Returns the vertex of the given index. Throws if the index is out of range, if it less than 1 or greater than the number of vertices.

Returns the vertex of the given index. Throws if the index is out of range, if it less than 1 or greater than the number of vertices.

Inherited from
PolygonLike
def vertsFold[B](init: B)(f: (B, VT) => B): B

Folds over the vertices.

Folds over the vertices.

Type Params
B

type of the accumulator return value of this method.

Inherited from
PolygonLike
def vertsForAll(f: VT => Boolean): Boolean

This method should be overridden in final classes.

This method should be overridden in final classes.

Inherited from
PolygonLike
override
def vertsForeach[U](f: VT => U): Unit
Definition Classes
Inherited from
PolygonValueN
def vertsIForeach[U](f: (VT, Int) => U): Unit

Performs the side effecting function on the value of each vertex and an index.

Performs the side effecting function on the value of each vertex and an index.

Inherited from
PolygonLike
def vertsMap[B, ArrB <: ArrBase[B]](f: VT => B)(implicit builder: ArrBuilder[B, ArrB]): ArrB

Maps the vertices of this polygon to an immutable Array like sequence of type B.

Maps the vertices of this polygon to an immutable Array like sequence of type B.

Type Params
ArrB

The type of the immutable Array like sequence of B.

B

The element type of the returned sequence.

Returns

the immutable sequence collection by applying the supplied function to each vertex.

Inherited from
PolygonLike
override
def vertsNum: Int
Definition Classes
Inherited from
PolygonValueN