LinePath

class LinePath(val arrayUnsafe: Array[Double]) extends AffinePreserve with Pt2sLike with LinePathDbl2s[Pt2]

Array[Double] based collection class for a LinePath. Conversion to and from the Vec2s class and Polygon class should not entail a runtime cost.

Companion
object
trait Pt2sLike
trait DataDbl2s[Pt2]
trait DataDblNs[Pt2]
trait DataImut[Pt2]
trait DataGen[Pt2]
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

def draw(lineWidth: Double, colour: Colour): LinePathDraw
def foreachEnd(f: (Double, Double) => Unit): Unit
@inline
def lengthFull: Int
@inline
def pStart: Pt2
def ptsTrans(f: Pt2 => Pt2): LinePath
override
def typeStr: String
Definition Classes
def unsafeFromArray(array: Array[Double]): LinePath
@inline
def xStart: Double
@inline
def yStart: Double

Inherited methods

@inline
override
def arrLen: Int
Definition Classes
Inherited from
DataDblNs
def arrTrans(f: Pt2 => Pt2): Array[Double]
Inherited from
Pt2sLike
final override
def dataElem(d1: Double, d2: Double): Pt2
Definition Classes
Inherited from
Pt2sLike
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](initIndex: Int)(f: (Int, Pt2) => U): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data 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 on the data elements. Performs a side effecting function on the index and each element of the data 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.

Inherited from
DataGen
def dataIForeach[U](f: (Int, Pt2) => Any): Unit

Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data 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 on the data elements. Performs a side effecting function on the index and each element of the data 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.

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

Specialised map to an immutable SeqImut of B. For SeqGen dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolgonLike.

Specialised map to an immutable SeqImut of B. For SeqGen dataMap is the same as map, but for other structures it will be different, for example a PolygonLike will map to another PolgonLike.

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 fElemStr: Pt2 => String
Definition Classes
Inherited from
Pt2sLike
override
def indexData(index: Int): Pt2
Definition Classes
Inherited from
DataDbl2s
def map[B <: ElemValueN, BB <: LinePathLike[B]](f: Pt2 => B)(implicit build: LinePathBuilder[B, BB]): BB
Inherited from
LinePathLike
override
def negX: ThisT
Definition Classes
Inherited from
SimilarPreserve
override
def negY: ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
ProlignPreserve
override
def reflect(lineLike: LineLike): ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
DataDblNs
override
def rotate(angle: AngleVec): ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
SimilarPreserve
override
def scale(operand: Double): ThisT
Definition Classes
Inherited from
ProlignPreserve
override
def scaleXY(xOperand: Double, yOperand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override
def shearX(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override
def shearY(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override
def slateXY(xDelta: Double, yDelta: Double): ThisT
Definition Classes
Inherited from
ProlignPreserve
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
def unsafeReverseArray: Array[Double]

Reverses the order of the elements in a new Array[Double] which is returned.

Reverses the order of the elements in a new Array[Double] which is returned.

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

Concrete fields

val arrayUnsafe: Array[Double]