Packages

trait Rectangle extends Polygon

The Rectangle trait defines 4 vertices v0, v1, v2 and v3. The leaf classes of this class may or may not be squares and may or may not be aligned to the X and Y Axes. You can build a Rectangle using the factory methods in the Rectangle companion object. However if your rectangle is a aligned to the X and Y axis prefer the factory methods on the companion object of the shorter named Rect trait.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rectangle
  2. Polygon
  3. Shape
  4. BoundedElem
  5. Fillable
  6. Drawable
  7. Vec2sLike
  8. GeomElem
  9. Serializable
  10. Product
  11. Equals
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def ls3Cen: Vec2
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product
  4. abstract def rotation: Angle
  5. abstract def v0: Vec2

    May throw on a 0 vertices polygon.

    May throw on a 0 vertices polygon.

    Definition Classes
    Polygon
  6. abstract def v1: Vec2
  7. abstract def v2: Vec2
  8. abstract def v3: Vec2
  9. abstract def width1: Double

    length from v1 to v2 and v3 to v4.

  10. abstract def width2: Double

    length from v2 to v3 and v03 to v1.

  11. abstract def x0: Double

    May throw on a 0 vertices polygon.

    May throw on a 0 vertices polygon.

    Definition Classes
    RectanglePolygon
  12. abstract def x1: Double
  13. abstract def x2: Double
  14. abstract def x3: Double
  15. abstract def xCen: Double
    Definition Classes
    BoundedElem
  16. abstract def xLs3Cen: Double
  17. abstract def y0: Double

    May throw on a 0 vertices polygon.

    May throw on a 0 vertices polygon.

    Definition Classes
    RectanglePolygon
  18. abstract def y1: Double
  19. abstract def y2: Double
  20. abstract def y3: Double
  21. abstract def yCen: Double
    Definition Classes
    BoundedElem
  22. abstract def yLs3Cen: Double

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def active(id: Any): PolygonActive
    Definition Classes
    Polygon
  5. def activeChildren(id: Any, children: GraphicElems): PolygonCompound
    Definition Classes
    Polygon
  6. final def apply(index: Int): Vec2
    Definition Classes
    RectangleVec2sLike
    Annotations
    @inline()
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def attribs: Arr[XANumeric]
    Definition Classes
    RectangleShape
  9. def boundingBL: Vec2
    Definition Classes
    BoundedElem
  10. def boundingBR: Vec2
    Definition Classes
    BoundedElem
  11. def boundingHeight: Double
    Definition Classes
    BoundedElem
  12. 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
  13. def boundingTL: Vec2
    Definition Classes
    BoundedElem
  14. def boundingTR: Vec2
    Definition Classes
    BoundedElem
  15. def boundingWidth: Double

    The width of the BoundingRect of this object.

    The width of the BoundingRect of this object.

    Definition Classes
    BoundedElem
  16. def canEqual(that: Any): Boolean

    This canEqual override allow the comparison of Shapes.

    This canEqual override allow the comparison of Shapes.

    Definition Classes
    Shape → Equals
  17. def cen: Vec2
    Definition Classes
    PolygonShapeBoundedElem
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  19. def draw(lineWidth: Double, lineColour: Colour): RectangleDraw

    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
    RectanglePolygonShapeDrawable
  20. final def elem1sArray: Array[Double]
    Definition Classes
    RectanglePolygon
  21. final def elem2sArray: Array[Double]
    Definition Classes
    RectanglePolygon
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def fTrans(f: (Vec2) => Vec2): Polygon
    Definition Classes
    Polygon
  25. def fill(fillColour: Colour): RectangleFill
    Definition Classes
    RectanglePolygonShapeFillable
  26. def fillActive(fillColour: Colour, pointerID: Any): PolygonCompound
    Definition Classes
    Polygon
  27. def fillActiveDraw(fillColour: Colour, pointerID: Any, lineWidth: Double = 2, lineColour: Colour = Black): 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
  28. def fillDraw(fillColour: Colour, lineWidth: Double, lineColour: Colour): PolygonCompound
    Definition Classes
    PolygonFillable
  29. def fillDrawActive(fillColour: Colour, pointerID: Any, lineWidth: Double, lineColour: Colour = Black): PolygonCompound
    Definition Classes
    Polygon
  30. def fillDrawText(fillColour: Colour, str: String, fontSize: Int = 24, lineWidth: Double = 2.0, lineColour: Colour = Black): PolygonCompound
    Definition Classes
    Polygon
  31. def fillDrawTextActive(fillColour: Colour, pointerID: Any, str: String, fontSize: Int = 24, lineWidth: Double, lineColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  32. def fillText(fillColour: Colour, str: String, fontSize: Int = 10, textColour: Colour = Black, layer: Int = 0): PolygonCompound
    Definition Classes
    Polygon
  33. def fillTextActive(fillColour: Colour, pointerEv: Any, str: String, fontSize: Int = 24, fontColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  34. def foldLeft[B](initial: B)(f: (B, Vec2) => B): B
    Definition Classes
    Vec2sLike
  35. final def foreach[U](f: (Vec2) => U): Unit
    Definition Classes
    RectangleVec2sLike
  36. def foreachPairTail[U](f: (Double, Double) => U): Unit
    Definition Classes
    RectanglePolygon
  37. final def foreachTail[U](f: (Vec2) => U): Unit
    Definition Classes
    RectangleVec2sLike
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. def heightAttrib: HeightAtt
  41. def insVert(insertionPoint: Int, newVec: Vec2): Polygon

    Insert vertice

    Insert vertice

    Definition Classes
    Polygon
  42. def insVerts(insertionPoint: Int, newVecs: Vec2*): Polygon

    Insert vertices

    Insert vertices

    Definition Classes
    Polygon
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. final def length: Int
    Definition Classes
    RectanglePolygon
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def negX: Rectangle

    Mirror, reflection transformation across the X axis on a Rectangle, returns a Rectangle.

    Mirror, reflection transformation across the X axis on a Rectangle, returns a Rectangle.

    Definition Classes
    RectanglePolygonShapeGeomElem
  47. def negY: Rectangle

    Mirror, reflection transformation across the X axis on a Rectangle, returns a Rectangle.

    Mirror, reflection transformation across the X axis on a Rectangle, returns a Rectangle.

    Definition Classes
    RectanglePolygonShapeGeomElem
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  50. def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int = 10, textColour: Colour = Black, align: TextAlign = CenAlign): PolygonCompound
    Definition Classes
    Polygon
  51. def polyCentre: Vec2
    Definition Classes
    Polygon
  52. def polygonMap(f: (Vec2) => Vec2): Polygon
    Definition Classes
    Polygon
    Annotations
    @inline()
  53. def productElementName(n: Int): String
    Definition Classes
    Product
  54. def productElementNames: Iterator[String]
    Definition Classes
    Product
  55. def productIterator: Iterator[Any]
    Definition Classes
    Product
  56. def productPrefix: String
    Definition Classes
    Product
  57. def prolign(matrix: ProlignMatrix): Rectangle

    Prolign 2d transformations, similar transformations that retain alignment with the axes.

    Prolign 2d transformations, similar transformations that retain alignment with the axes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  58. def ptInside(pt: Vec2): Boolean

    Determines if the parenter point lies inside this Polygon.

    Determines if the parenter point lies inside this Polygon.

    Definition Classes
    Polygon
  59. def ptsArray: Array[Double]
    Definition Classes
    RectanglePolygon
  60. def reflect(lineLike: LineLike): Rectangle

    Reflect 2D geometric transformation across a line, line segment or ray on a polygon, returns a Polygon.

    Reflect 2D geometric transformation across a line, line segment or ray on a polygon, returns a Polygon. The Return type will be narrowed in sub traits / classes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  61. def rotate(angle: Angle): Rectangle

    Rotation 2D geometric transformation on a Polygon, taking the rotation as a scalar measured in radians, returns a Polygon.

    Rotation 2D geometric transformation on a Polygon, taking the rotation as a scalar measured in radians, returns a Polygon. The Return type will be narrowed in some but not all sub traits / classes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  62. def rotate180: Rectangle

    Rotate 180 degrees 2D geometric transformation on a Rectangle, returns a Rectangle.

    Rotate 180 degrees 2D geometric transformation on a Rectangle, returns a Rectangle. The return type will be narrowed in sub traits / classes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  63. def rotate270: Rectangle

    Rotate 270 degrees anti clockwise or rotate 90 degrees clockwise 2D geometric transformation on a Rectangle, returns a Rectangle.

    Rotate 270 degrees anti clockwise or rotate 90 degrees clockwise 2D geometric transformation on a Rectangle, returns a Rectangle. The return type will be narrowed in sub traits / classes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  64. def rotate90: Rectangle

    Rotate 90 degrees anti clockwise or rotate 270 degrees clockwise 2D geometric transformation on a Rectangle, returns a Rectangle.

    Rotate 90 degrees anti clockwise or rotate 270 degrees clockwise 2D geometric transformation on a Rectangle, returns a Rectangle. The return type will be narrowed in sub traits / classes.

    Definition Classes
    RectanglePolygonShapeGeomElem
  65. def scale(operand: Double): Rectangle

    Uniform scaling transformation on a Rectangle returns a Rectangle.

    Uniform scaling transformation on a Rectangle returns a Rectangle.

    Definition Classes
    RectanglePolygonShapeGeomElem
  66. def slate(xOffset: Double, yOffset: Double): Rectangle

    Translate geometric transformation on a Rectangle returns a Rectangle.

    Translate geometric transformation on a Rectangle returns a Rectangle.

    Definition Classes
    RectanglePolygonShapeGeomElem
  67. def slate(offset: Vec2): Rectangle

    Translate geometric transformation on a Rectangle returns a Rectangle.

    Translate geometric transformation on a Rectangle returns a Rectangle.

    Definition Classes
    RectanglePolygonShapeGeomElem
  68. def slateTo(newCen: Vec2): Rectangle
    Definition Classes
    RectanglePolygonBoundedElem
  69. def sline(index: Int): LineSeg
    Definition Classes
    Polygon
  70. def sline0: LineSeg
    Definition Classes
    Polygon
  71. def sline1: LineSeg
    Definition Classes
    Polygon
  72. def sline2: LineSeg
    Definition Classes
    Polygon
  73. def sline3: LineSeg
    Definition Classes
    Polygon
  74. def sline4: LineSeg
    Definition Classes
    Polygon
  75. def sline5: LineSeg
    Definition Classes
    Polygon
  76. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  77. 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
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def v0Mid1: Vec2
  80. def v1Mid2: Vec2
  81. def v2Mid3: Vec2
  82. def v3Mid0: Vec2
  83. def vertsMap[A, ArrT <: ArrBase[A]](f: (Vec2) => A)(implicit build: ArrBuild[A, ArrT]): ArrT
    Definition Classes
    Vec2sLike
  84. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  86. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. def widthAttrib: WidthAtt
  88. def xAttrib: XAttrib
  89. def xGet(index: Int): Double
    Definition Classes
    RectanglePolygon
  90. def xShear(operand: Double): Polygon

    Shear 2D geometric transformation along the X Axis on a Polygon, returns a Polygon.

    Shear 2D geometric transformation along the X Axis on a Polygon, returns a Polygon. The return type will be narrowed in some but not all sub classes and traits.

    Definition Classes
    PolygonShapeGeomElem
  91. def xyScale(xOperand: Double, yOperand: Double): Rectangle

    XY scaling 2D geometric transformation on a Polygon returns a Polygon.

    XY scaling 2D geometric transformation on a Polygon returns a Polygon. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in some, but not all descendant Polygon types.

    Definition Classes
    RectanglePolygonShapeGeomElem
  92. def yAttrib: YAttrib
  93. def yGet(index: Int): Double
    Definition Classes
    RectanglePolygon
  94. def yShear(operand: Double): Polygon

    Shear 2D geometric transformation along the Y Axis on a Polygon, returns a Polygon.

    Shear 2D geometric transformation along the Y Axis on a Polygon, returns a Polygon. The return type will be narrowed in sub classes and traits.

    Definition Classes
    PolygonShapeGeomElem

Deprecated Value Members

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

Inherited from Polygon

Inherited from Shape

Inherited from BoundedElem

Inherited from Fillable

Inherited from Drawable

Inherited from Vec2sLike

Inherited from GeomElem

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped