Packages

final class PolygonImp extends Polygon with Vec2sLikeProdDbl2 with AffinePreserve

The implementation class for a general Polygon as opposed to a specific Polygon such as a Square or a Rectangle, is encoded as a sequence of plain 2 dimension (mathematical) vectors. Minimum length 3. Clockwise is the default. Polygon may be altered to include a centre.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PolygonImp
  2. AffinePreserve
  3. SimilarPreserve
  4. ProlignPreserve
  5. Vec2sLikeProdDbl2
  6. Dbl2sArr
  7. DblNsArr
  8. ArrayDblBased
  9. ValueNsArr
  10. ArrImut
  11. ArrayLike
  12. ArrayLikeBase
  13. Polygon
  14. PolygonLike
  15. Approx
  16. Equals
  17. Shape
  18. BoundedElem
  19. Fillable
  20. Drawable
  21. GeomElem
  22. AnyRef
  23. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PolygonImp(arrayUnsafe: Array[Double])

Type Members

  1. type ThisT = PolygonImp

    The most narrow type preserved in some 2d geometric transformations.

    The most narrow type preserved in some 2d geometric transformations.

    Definition Classes
    PolygonImpAffinePreserveSimilarPreserveProlignPreserveDbl2sArrDblNsArrValueNsArrArrImutArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++[N <: ValueNsArr[Pt2]](operand: N)(implicit factory: (Int) => N): N

    Appends ProductValue collection with the same type of Elements to a new ValueProduct 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.

    Definition Classes
    ValueNsArr
  4. def :+[N <: ValueNsArr[Pt2]](operand: Pt2)(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.

    Definition Classes
    ValueNsArr
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def active(id: Any): PolygonActive
    Definition Classes
    Polygon
  7. def activeChildren(id: Any, children: GraphicElems): PolygonCompound
    Definition Classes
    Polygon
  8. def append(op: Pt2): ThisT

    Functionally appends the operand of type A.

    Functionally appends the operand of type A. This alphanumeric method is not aliased by the ++ operator, to avoid confusion with numeric operators.

    Definition Classes
    Dbl2sArr
  9. 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.

    Definition Classes
    DblNsArr
  10. def apply(index: Int): Pt2
    Definition Classes
    Dbl2sArrArrayLike
  11. def approx(that: Any, precision: Double): Boolean
    Definition Classes
    PolygonApprox
  12. def arrLen: 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.

    Definition Classes
    DblNsArrValueNsArr
  13. def arrTrans(f: (Pt2) => Pt2): Array[Double]
    Definition Classes
    Vec2sLikeProdDbl2
  14. val arrayUnsafe: Array[Double]
    Definition Classes
    PolygonImpArrayDblBased
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def attribs: Arr[XANumeric]
    Definition Classes
    PolygonImpPolygonShape
  17. def blBounding: Pt2
    Definition Classes
    BoundedElem
  18. final def boundCen: Pt2

    The centre of the bounding rectangle.

    The centre of the bounding rectangle. consider also using cenDefault.

    Definition Classes
    BoundedElem
    Annotations
    @inline()
  19. def boundingHeight: Double
    Definition Classes
    BoundedElem
  20. def boundingRect: BoundingRect

    Currently throws, not sure if that is the correct behaviour.

    Currently throws, not sure if that is the correct behaviour. Creates a bounding rectangle for a collection of 2d points

    Definition Classes
    PolygonBoundedElem
  21. def boundingWidth: Double

    The width of the BoundingRect of this object.

    The width of the BoundingRect of this object.

    Definition Classes
    BoundedElem
  22. def brBounding: Pt2
    Definition Classes
    BoundedElem
  23. def canEqual(that: Any): Boolean

    This canEqual override allow the comparison of Shapes.

    This canEqual override allow the comparison of Shapes.

    Definition Classes
    PolygonImp → Equals → Shape
  24. def cenDefault: Pt2

    If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

    If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

    Definition Classes
    BoundedElem
  25. def cenPt: Pt2

    The centre point of this Polygon.

    The centre point of this Polygon. The default centre for Polygons is the centre of the bounding rectangle.

    Definition Classes
    Polygon
  26. def cenVec: Vec2
    Definition Classes
    Polygon
  27. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  28. def collect[B, BB <: ArrImut[B]](pf: PartialFunction[Pt2, B])(implicit ev: ArrTBuilder[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.

    Definition Classes
    ArrayLike
  29. def collectList[B](pf: PartialFunction[Pt2, 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.

    Definition Classes
    ArrayLike
  30. def contains[A1 >: Pt2](elem: A1): Boolean
    Definition Classes
    ArrayLike
  31. 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.

    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.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  32. def distScale(distRatio: Metres): PolygonM
  33. def draw(lineColour: Colour = Black, lineWidth: Double = 2): PolygonDraw

    Draws this geometric element to produce a GraphElem graphical element, tht can be displayed or printed.

    Draws this geometric element to produce a GraphElem graphical element, tht can be displayed or printed.

    Definition Classes
    PolygonImpPolygonShapeDrawable
  34. def drawActive(lineColour: Colour = Black, lineWidth: Double = 2, pointerID: Any): PolygonCompound
    Definition Classes
    Polygon
  35. def eMap[B, ArrB <: ArrImut[B]](f: (Pt2) => EMon[B])(implicit ev: ArrTBuilder[B, ArrB]): EMon[ArrB]
    Definition Classes
    ArrayLike
  36. def eMapList[B](f: (Pt2) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  37. def elem1sArray: Array[Double]
    Definition Classes
    Dbl2sArr
  38. def elem2sArray: Array[Double]
    Definition Classes
    Dbl2sArr
  39. final def elemBuilder(d1: Double, d2: Double): Pt2

    Method for creating new elements from 2 Doubles.

    Method for creating new elements from 2 Doubles.

    Definition Classes
    Vec2sLikeProdDbl2Dbl2sArr
  40. def elemProductNum: Int

    The number of Doubles, that specify / construct an element of this immutable flat Array based collection class.

    The number of Doubles, that specify / construct an element of this immutable flat Array based collection class.

    Definition Classes
    Dbl2sArrDblNsArrValueNsArr
  41. final def elemsLen: Int

    The number of product elements in this collection.

    The number of product elements in this collection. For example in a this is the number of Pt2s in the Polygon

    Definition Classes
    ValueNsArrArrayLikeBase
  42. final def elemsStr: String

    The element String allows the composition of toString for the whole collection.

    The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

    Definition Classes
    ArrImut
  43. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  44. def eq(obj: PolygonImp): Boolean
  45. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  47. 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

    Definition Classes
    ArrayLike
  48. def fElemStr: (Pt2) => String
    Definition Classes
    Vec2sLikeProdDbl2ArrImut
  49. def fHeadElse[B](noHead: => B)(ifHead: (Pt2) => B): B
    Definition Classes
    ArrayLike
  50. 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.

    Definition Classes
    ArrayLike
  51. 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.

    Definition Classes
    ArrayLike
  52. def fill(fillColour: Colour): PolygonFill

    Returns a fill graphic of this geometric object.

    Returns a fill graphic of this geometric object.

    Definition Classes
    PolygonImpPolygonShapeFillable
  53. def fillActive(fillColour: Colour, pointerID: Any): PolygonCompound
    Definition Classes
    Polygon
  54. def fillActiveDraw(fillColour: Colour, pointerID: Any, lineColour: Colour = Black, lineWidth: Double = 2): PolygonCompound

    Creates a PolygonCompound graphic that is active with a simple 1 colour fill and has a draw graphic for the Polygon.

    Creates a PolygonCompound graphic that is active with a simple 1 colour fill and has a draw graphic for the Polygon. The default values for the draw area line width of 2 and a colour of Black.

    Definition Classes
    Polygon
  55. def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): PolygonCompound

    Returns a fill and draw graphic of this geometric object.

    Returns a fill and draw graphic of this geometric object.

    Definition Classes
    PolygonFillable
  56. def fillDrawActive(fillColour: Colour, pointerID: Any, lineWidth: Double, lineColour: Colour = Black): PolygonCompound
    Definition Classes
    Polygon
  57. def fillDrawText(fillColour: Colour, str: String, fontSize: Int = 24, lineColour: Colour = Black, lineWidth: Double = 2.0): PolygonCompound
    Definition Classes
    Polygon
  58. def fillDrawTextActive(fillColour: Colour, pointerID: Any, str: String, fontSize: Int = 24, lineWidth: Double, lineColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  59. def fillInt(intValue: Int): PolygonFill

    Returns a fill graphic of this geometric object from the Int RGBA value.

    Returns a fill graphic of this geometric object from the Int RGBA value.

    Definition Classes
    PolygonShapeFillable
  60. def fillText(fillColour: Colour, str: String, fontSize: Int = 10, textColour: Colour = Black, layer: Int = 0): PolygonCompound
    Definition Classes
    Polygon
  61. def fillTextActive(fillColour: Colour, pointerEv: Any, str: String, fontSize: Int = 24, fontColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  62. def filter[ArrA <: ArrImut[Pt2]](f: (Pt2) => Boolean)(implicit ev: ArrTBuilder[Pt2, ArrA]): ArrA
    Definition Classes
    ArrayLike
  63. def filterNot[ArrA <: ArrImut[Pt2]](f: (Pt2) => Boolean)(implicit ev: ArrTBuilder[Pt2, ArrA]): ArrA
    Definition Classes
    ArrayLike
  64. def filterToList(f: (Pt2) => Boolean): List[Pt2]
    Definition Classes
    ArrayLike
  65. def find(f: (Pt2) => Boolean): Option[Pt2]
    Definition Classes
    ArrImut
  66. def flatMap[ArrB <: ArrImut[_]](f: (Pt2) => ArrB)(implicit ev: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  67. def foldHeadTail[B](initial: B)(fHead: (B, Pt2) => B)(fTail: (B, Pt2) => B): B
    Definition Classes
    ArrayLike
  68. def foldLeft[B](initial: B)(f: (B, Pt2) => B): B
    Definition Classes
    PolygonImpVec2sLikeProdDbl2ArrayLike
  69. def foldTailLeft[B](initial: B)(f: (B, Pt2) => B): B
    Definition Classes
    ArrayLike
  70. def foldWithPrevious[B](initPrevious: Pt2, initAcc: B)(f: (B, Pt2, Pt2) => B): B
    Definition Classes
    ValueNsArr
  71. def forAll(p: (Pt2) => Boolean): Boolean
    Definition Classes
    ArrayLike
  72. def foreach[U](f: (Pt2) => U): Unit

    Performs the effectual function on each member of the collection.

    Performs the effectual function on each member of the collection.

    Definition Classes
    ArrayLikeArrayLikeBase
  73. def foreachArr(f: (Dbls) => Unit): Unit
    Definition Classes
    Dbl2sArrDblNsArr
  74. def foreachInit[U](f: (Pt2) => U): Unit
    Definition Classes
    ArrayLike
  75. def foreachPairTail[U](f: (Double, Double) => U): Unit
    Definition Classes
    Dbl2sArr
  76. def foreachReverse[U](f: (Pt2) => 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.

    Definition Classes
    ArrayLike
  77. def foreachTail[U](f: (Pt2) => U): Unit
    Definition Classes
    ArrayLike
  78. def foreachVert[U](f: (Pt2) => U): Unit

    Performs the side effecting function on the Pt2 value of each vertex.

    Performs the side effecting function on the Pt2 value of each vertex.

    Definition Classes
    PolygonImpPolygonPolygonLike
  79. def foreachVertPairTail[U](f: (Double, Double) => U): Unit

    Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex.

    Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex.

    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  80. def foreachVertTail[U](f: (Pt2) => U): Unit

    Performs the side effecting function on the Pt2 value of each vertex, excluding vertex v1.

    Performs the side effecting function on the Pt2 value of each vertex, excluding vertex v1.

    Definition Classes
    PolygonImpPolygon
  81. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  82. def getPair(index: Int): (Double, Double)
    Definition Classes
    Dbl2sArr
  83. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  84. def head: Pt2
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  85. def head1: Double
    Definition Classes
    Dbl2sArr
  86. def head2: Double
    Definition Classes
    Dbl2sArr
  87. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  88. def height: Double
  89. def iFlatMap[ArrB <: ArrImut[_]](iInit: Int = 0)(f: (Pt2, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  90. def iFlatMap[ArrB <: ArrImut[_]](f: (Pt2, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  91. def iForAll(p: (Pt2, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  92. def iForeach[U](startIndex: Int = 0)(f: (Pt2, Int) => U): Unit

    foreach with index.

    foreach with index.

    Definition Classes
    ArrayLikeArrayLikeBase
  93. def iForeach[U](f: (Pt2, Int) => U): Unit

    foreach with index starting at 0.

    foreach with index starting at 0.

    Definition Classes
    ArrayLikeArrayLikeBase
  94. def iForeachReverse[U](f: (Pt2, Int) => U): Unit
    Definition Classes
    ArrayLike
  95. def iMap[B, ArrB <: ArrImut[B]](f: (Pt2, Int) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    Specialised map with index to an immutable ArrBase of B.

    Specialised map with index to an immutable ArrBase of B. This method should be overridden in sub classes.

    Definition Classes
    ArrayLike
  96. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  97. def indexOf(elem: Pt2): Int
    Definition Classes
    ArrayLike
  98. 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.

    Definition Classes
    ArrayLike
  99. def insVert(insertionPoint: Int, newVec: Pt2): PolygonImp

    Insert vertex.

    Insert vertex.

    Definition Classes
    PolygonImpPolygon
  100. def insVerts(insertionPoint: Int, newVecs: Pt2*): PolygonImp

    Insert vertices

    Insert vertices

    Definition Classes
    PolygonImpPolygon
  101. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  102. def iterFlatMap[B, ArrB <: ArrImut[B]](f: (Pt2) => Iterable[B])(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  103. def last: Pt2
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  104. 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.

    Definition Classes
    ArrayLikeBase
  105. def map[B, ArrB <: ArrImut[B]](f: (Pt2) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    Specialised map to an immutable ArrBase of B.

    Specialised map to an immutable ArrBase of B.

    Definition Classes
    ArrayLike
  106. def map2To1[B, ArrB <: ArrImut[B]](f: (Pt2, Pt2) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    map 2 elements of A to 1 element of B.

    map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

    Definition Classes
    ArrayLike
  107. def mapCollectGoods[B, BB <: ArrImut[B]](f: (Pt2) => EMon[B])(implicit ev: ArrTBuilder[B, BB]): BB

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

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

    Definition Classes
    ArrayLike
  108. def mapList[B <: AnyRef](f: (Pt2) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  109. def mapWithAcc[B, ArrB <: ArrImut[B], C](initC: C)(f: (Pt2, C) => (B, C))(implicit ev: ArrTBuilder[B, ArrB]): ArrB
    Definition Classes
    ArrayLike
  110. def max[B >: Pt2](implicit ord: Ordering[B]): Pt2
    Definition Classes
    ArrayLike
  111. def maxX: Double
  112. def maxY: Double
  113. def min[B >: Pt2](implicit ord: Ordering[B]): Pt2
    Definition Classes
    ArrayLike
  114. def minX: Double
  115. def minY: Double
  116. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  117. def modifyWhere(pred: (Pt2) => Boolean, fNewValue: (Pt2) => 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.

    Definition Classes
    ArrImut
  118. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  119. def negX: ThisT

    Mirror, reflection 2D geometric transformation across the Y axis by negating X.

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

    Definition Classes
    SimilarPreserveProlignPreserveGeomElem
  120. def negY: ThisT

    Mirror, reflection 2D geometric transformation across the X axis by negating y.

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

    Definition Classes
    SimilarPreserveProlignPreserveGeomElem
  121. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  122. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  123. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  124. def pMap[B <: ValueNElem, N <: ValueNsArr[B]](f: (Pt2) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ValueNsArr
  125. def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int = 10, textColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  126. def polygonMap(f: (Pt2) => Pt2): PolygonImp
    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  127. def precisionDefault: Double
    Definition Classes
    PolygonApprox
  128. def prolign(matrix: ProlignMatrix): ThisT

    2D Transformation using a ProlignMatrix.

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

    Definition Classes
    ProlignPreserveGeomElem
  129. def ptInside(pt: Pt2): Boolean

    Determines if the parameter point lies inside this Polygon.

    Determines if the parameter point lies inside this Polygon.

    Definition Classes
    Polygon
  130. def ptsTrans(f: (Pt2) => Pt2): PolygonImp

    A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.

    A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.

    Definition Classes
    PolygonImpProlignPreserve
    Annotations
    @inline()
  131. def reflect(lineLike: LineLike): ThisT

    Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem.

    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.

    Definition Classes
    SimilarPreserveGeomElem
  132. def removeFirst(f: (Pt2) => Boolean): ThisT
    Definition Classes
    ArrImut
  133. 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.

    Definition Classes
    ArrImut
  134. def replaceWhere(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.

    Definition Classes
    ArrImut
  135. def returnThis: ThisT

    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.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  136. def reverse: ThisT
    Definition Classes
    DblNsArr
  137. def rotate(angle: AngleVec): ThisT

    Rotation 2D geometric transformation on a GeomElem.

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

    Definition Classes
    SimilarPreserveGeomElem
  138. def rotate180: ThisT

    Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem.

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

    Definition Classes
    SimilarPreserveGeomElem
  139. def rotate270: ThisT

    Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem.

    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.

    Definition Classes
    SimilarPreserveGeomElem
  140. def rotate90: ThisT

    Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem.

    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.

    Definition Classes
    SimilarPreserveGeomElem
  141. def scale(operand: Double): ThisT

    Uniform 2D geometric scaling transformation.

    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.

    Definition Classes
    ProlignPreserveGeomElem
  142. def scaleXY(xOperand: Double, yOperand: Double): ThisT

    Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem.

    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.

    Definition Classes
    AffinePreserveGeomElem
  143. def shearX(operand: Double): ThisT

    Shear 2D geometric transformation along the X Axis on a GeomElem.

    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.

    Definition Classes
    AffinePreserveGeomElem
  144. def shearY(operand: Double): ThisT

    Shear 2D geometric transformation along the Y Axis on a GeomElem.

    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.

    Definition Classes
    AffinePreserveGeomElem
  145. def side(index: Int): LineSeg
    Definition Classes
    Polygon
    Annotations
    @inline()
  146. def sideForeach(f: (LineSeg) => Unit): Unit

    foreachs over the sides or edges of the Polygon These are of type LineSeg.

    foreachs over the sides or edges of the Polygon These are of type LineSeg.

    Definition Classes
    Polygon
  147. def sideIForeach(initCount: Int = 0)(f: (LineSeg, Int) => Unit): Unit

    foreachs over the sides or edges of the Polygon These are of type LineSeg.

    foreachs over the sides or edges of the Polygon These are of type LineSeg.

    Definition Classes
    Polygon
  148. def sidesIFlatMap[AA <: ArrImut[_]](initCount: Int = 0)(f: (LineSeg, Int) => AA)(implicit build: ArrTFlatBuilder[AA]): AA

    maps with a integer counter over the sides or edges of the Polygon These are of type LineSeg.

    maps with a integer counter over the sides or edges of the Polygon These are of type LineSeg.

    Definition Classes
    Polygon
  149. def sidesIMap[A, AA <: ArrImut[A]](initCount: Int = 0)(f: (LineSeg, Int) => A)(implicit build: ArrTBuilder[A, AA]): AA

    maps with a integer counter over the sides or edges of the Polygon These are of type LineSeg.

    maps with a integer counter over the sides or edges of the Polygon These are of type LineSeg.

    Definition Classes
    Polygon
  150. def sidesMap[A, AA <: ArrImut[A]](f: (LineSeg) => A)(implicit build: ArrTBuilder[A, AA]): AA

    maps over the sides or edges of the Polygon These are of type LineSeg.

    maps over the sides or edges of the Polygon These are of type LineSeg.

    Definition Classes
    Polygon
  151. def slate(offset: Vec2Like): Polygon

    Translate geometric transformation on a Polygon returns a Polygon.

    Translate geometric transformation on a Polygon returns a Polygon. The return type of this method will be narrowed further in most descendant traits / classes. The exceptions being those classes where the centring of the geometry at the origin is part of the type.

    Definition Classes
    Polygon
  152. def slateXY(xDelta: Double, yDelta: Double): ThisT

    Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem.

    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.

    Definition Classes
    ProlignPreserveGeomElem
  153. def sline(index: Int): LineSeg
    Definition Classes
    Polygon
  154. def sum(implicit ev: Sumable[Pt2]): Pt2
    Definition Classes
    ArrayLike
  155. def sumBy(f: (Pt2) => Int): Int
    Definition Classes
    ArrayLike
  156. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  157. def tlBounding: Pt2
    Definition Classes
    BoundedElem
  158. def toLineSegs: LineSegs

    Converts this closed Polygon to LineSegs.

    Converts this closed Polygon to LineSegs. The LineSegs collection is empty of there are less than 2 vertices.

    Definition Classes
    Polygon
  159. def toList: List[Pt2]
    Definition Classes
    ArrayLike
  160. final def toString(): String
    Definition Classes
    ArrImut → Any
  161. def toStrsCommaFold(fToStr: (Pt2) => String): String
    Definition Classes
    ArrayLike
  162. def toStrsCommaNoSpaceFold(fToStr: (Pt2) => String): String
    Definition Classes
    ArrayLike
  163. def toStrsCommaParenth(fToStr: (Pt2) => String): String
    Definition Classes
    ArrayLike
  164. def toStrsFold(seperator: String, f: (Pt2) => String): String
    Definition Classes
    ArrayLike
  165. def toStrsSemiFold(fToStr: (Pt2) => String): String
    Definition Classes
    ArrayLike
  166. def toStrsSemiParenth(fToStr: (Pt2) => String): String
    Definition Classes
    ArrayLike
  167. def trBounding: Pt2
    Definition Classes
    BoundedElem
  168. def typeStr: String

    String specifying the type of this object.

    String specifying the type of this object.

    Definition Classes
    PolygonImpArrImut
  169. def unsafeCopyFromArray(opArray: Array[Double], offset: Int = 0): Unit
    Definition Classes
    DblNsArr
  170. def unsafeFromArray(array: Array[Double]): PolygonImp
    Definition Classes
    PolygonImpDblNsArr
  171. final def unsafeNew(length: Int): ThisT

    This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrImut's final type.

    This method should rarely be needed to be used by end users, but returns a new uninitialised ArrT of the this ArrImut's final type.

    Definition Classes
    DblNsArrArrImut
  172. def unsafeSetElem(index: Int, elem: Pt2): Unit

    Sets / mutates an element in the Arr.

    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.

    Definition Classes
    Dbl2sArrArrImut
  173. def unsafeSetElemSeq(index: Int, elems: Iterable[Pt2]): Unit
    Definition Classes
    ArrImut
  174. def unsafeSetElems(index: Int, elems: Pt2*): Unit

    Sets / mutates elements in the Arr.

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

    Definition Classes
    ArrImut
  175. def unsafeSetHead(value: Pt2): Unit

    Sets / mutates the head element in the Arr.

    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.

    Definition Classes
    ArrImut
  176. def unsafeSetLast(value: Pt2): Unit

    Sets / mutates the last element in the Arr.

    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.

    Definition Classes
    ArrImut
  177. def v1: Pt2

    The 1st vertex, will throw on a 0 vertices polygon.

    The 1st vertex, will throw on a 0 vertices polygon.

    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  178. def v1x: Double

    The X component of the 1st vertex, will throw on a 0 vertices polygon.

    The X component of the 1st vertex, will throw on a 0 vertices polygon.

    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  179. def v1y: Double

    The Y component of the 1st vertex, will throw on a 0 vertices polygon.

    The Y component of the 1st vertex, will throw on a 0 vertices polygon.

    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  180. def vLast: Pt2

    The last vertex will throw an exception on a 0 vertices polygon.

    The last vertex will throw an exception on a 0 vertices polygon.

    Definition Classes
    Polygon
  181. def vert(index: Int): Pt2

    Returns the vertex of the given index.

    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.

    Definition Classes
    PolygonImpPolygon
  182. def vertsArray: Array[Double]

    The vertices of this Polygon in an Array of Doubles.

    The vertices of this Polygon in an Array of Doubles.

    Definition Classes
    PolygonImpPolygon
    Annotations
    @inline()
  183. def vertsArrayX: Array[Double]

    The X component of the vertices of this Polygon in an Array of Doubles.

    The X component of the vertices of this Polygon in an Array of Doubles.

    Definition Classes
    PolygonImpPolygon
  184. def vertsArrayY: Array[Double]

    The Y component of the vertices of this Polygon in an Array of Doubles.

    The Y component of the vertices of this Polygon in an Array of Doubles.

    Definition Classes
    PolygonImpPolygon
  185. def vertsFoldLeft[B](initial: B)(f: (B, Pt2) => B): B
    Definition Classes
    Polygon
  186. def vertsIFlatMap[BB <: ArrImut[_]](iInit: Int = 0)(f: (Pt2, Int) => BB)(implicit build: ArrTFlatBuilder[BB]): BB

    flatMap with index to an immutable Arr.

    flatMap with index to an immutable Arr.

    Definition Classes
    Polygon
  187. def vertsMap[A, ArrT <: ArrImut[A]](f: (Pt2) => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT
    Definition Classes
    Polygon
  188. def vertsNum: Int

    The number of vertices and also the number of sides in this Polygon.

    The number of vertices and also the number of sides in this Polygon.

    Definition Classes
    PolygonImpPolygon
  189. def vertsTrans(f: (Pt2) => Pt2): PolygonImp

    A function that takes a 2D geometric transformation on a Pt2 as a parameter and performs the transformation on all the vertices returning a new transformed Polygon

    A function that takes a 2D geometric transformation on a Pt2 as a parameter and performs the transformation on all the vertices returning a new transformed Polygon

    Definition Classes
    PolygonImpPolygon
  190. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  191. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  192. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  193. def width: Double
  194. def xVert(index: Int): Double

    Returns the X component of the vertex of the given number.

    Returns the X component of the vertex of the given number. Will throw an exception if the vertex index is out of range.

    Definition Classes
    PolygonImpPolygon
  195. def yVert(index: Int): Double

    Returns the Y component of the vertex of the given number.

    Returns the Y component of the vertex of the given number. Will throw an exception if the vertex index is out of range.

    Definition Classes
    PolygonImpPolygon
  196. def zipMap[B, C, ArrC <: ArrImut[C]](operator: ArrayLike[B])(f: (Pt2, B) => C)(implicit ev: ArrTBuilder[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.

    Definition Classes
    ArrayLike
  197. def zipMap2[B, C, D, ArrD <: ArrImut[D]](operator1: ArrayLike[B], operator2: ArrayLike[C])(f: (Pt2, B, C) => D)(implicit ev: ArrTBuilder[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.

    Definition Classes
    ArrayLike

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AffinePreserve

Inherited from SimilarPreserve

Inherited from ProlignPreserve

Inherited from Vec2sLikeProdDbl2

Inherited from Dbl2sArr[Pt2]

Inherited from DblNsArr[Pt2]

Inherited from ArrayDblBased

Inherited from ValueNsArr[Pt2]

Inherited from ArrImut[Pt2]

Inherited from ArrayLike[Pt2]

Inherited from ArrayLikeBase[ostrat.geom.Pt2 @scala.annotation.unchecked.uncheckedVariance]

Inherited from Polygon

Inherited from PolygonLike[Pt2]

Inherited from Approx[Double]

Inherited from Equals

Inherited from Shape

Inherited from BoundedElem

Inherited from Fillable

Inherited from Drawable

Inherited from GeomElem

Inherited from AnyRef

Inherited from Any

Ungrouped