PhiRectY

case class PhiRectY(width: Double, cenX: Double, cenY: Double) extends Rect with PhiRectangle
Companion:
object
trait Serializable
trait Product
trait Rect
trait Rectangle
trait Polygon
trait Approx[Double]
trait Equals
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Type members

Inherited types

override type SideT = LineSeg
Inherited from:
Polygon

Value members

Concrete methods

override def height: Double
Definition Classes
override def negX: PhiRectY

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

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

Definition Classes
override def negY: PhiRectY

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

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

Definition Classes
override def prolign(matrix: ProlignMatrix): PhiRectY
Definition Classes
override def scale(operand: Double): PhiRectY

Uniform scaling transformation on a PhiRectY returns a PhiRectY.

Uniform scaling transformation on a PhiRectY returns a PhiRectY.

Definition Classes
override def slate(offset: Vec2Like): PhiRectY

Translate geometric transformation on a PhiRectY returns a PhiRectY.

Translate geometric transformation on a PhiRectY returns a PhiRectY.

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): PhiRectY

Translate geometric transformation on a PhiRectY returns a PhiRectY.

Translate geometric transformation on a PhiRectY returns a PhiRectY.

Definition Classes
override def width2: Double
Definition Classes

Inherited methods

def active(id: AnyRef): PolygonActive
Inherited from:
Polygon
override def activeChildren(id: AnyRef, children: GraphicElems): RectCompound
Definition Classes
Inherited from:
Rect
override def alignAngle: AngleVec
Definition Classes
Inherited from:
Rect
override def approx(that: Any, precision: Double): Boolean
Definition Classes
Inherited from:
Polygon
override def attribs: Arr[XANumeric]
Definition Classes
Inherited from:
Rectangle
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
final def bottomLeft: Pt2
Inherited from:
Rectangularlign
final def bottomRight: Pt2
Inherited from:
Rectangularlign
final def boundCen: Pt2

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

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

Inherited from:
BoundedElem
Inherited from:
BoundedElem

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

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

Definition Classes
Inherited from:
Polygon

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from:
BoundedElem
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
def canEqual(that: Any): Boolean

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Inherited from:
Shape
final override def cen: Pt2
Definition Classes
Inherited from:
Rect
final override def cenDefault: Pt2

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

Definition Classes
Inherited from:
CentredElem
def cenPt: Pt2

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

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

Inherited from:
Polygon
Inherited from:
Polygon
Inherited from:
Rectangle
Inherited from:
Rectangle
Inherited from:
Rectangle
override def draw(lineColour: Colour, lineWidth: Double): RectangleDraw
Definition Classes
Inherited from:
Rectangle
def drawActive(lineColour: Colour, lineWidth: Double, pointerID: AnyRef): PolygonCompound
Inherited from:
Polygon
Inherited from:
Polygon
override def fill(fillColour: Colour): RectangleFill
Definition Classes
Inherited from:
Rect
def fillActive(fillColour: Colour, pointerID: AnyRef): PolygonCompound
Inherited from:
Polygon
def fillActiveDraw(fillColour: Colour, pointerID: AnyRef, lineColour: Colour, lineWidth: Double): PolygonCompound

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.

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.

Inherited from:
Polygon
override def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): PolygonCompound
Definition Classes
Inherited from:
Polygon
def fillDrawActive(fillColour: Colour, pointerID: AnyRef, lineWidth: Double, lineColour: Colour): PolygonCompound
Inherited from:
Polygon
def fillDrawText(fillColour: Colour, str: String, fontSize: Int, lineColour: Colour, lineWidth: Double): PolygonCompound
Inherited from:
Polygon
def fillDrawTextActive(fillColour: Colour, pointerID: AnyRef, str: String, fontSize: Int, lineWidth: Double, lineColour: Colour, align: TextAlign): PolygonCompound
Inherited from:
Polygon
override def fillInt(intValue: Int): RectFill
Definition Classes
Inherited from:
Rect
def fillText(fillColour: Colour, str: String, fontSize: Int, textColour: Colour, layer: Int): PolygonCompound
Inherited from:
Polygon
def fillTextActive(fillColour: Colour, pointerEv: AnyRef, str: String, fontSize: Int, fontColour: Colour, align: TextAlign): PolygonCompound
Inherited from:
Polygon
override def foreachVertPairTail[U](f: (Double, Double) => U): Unit
Definition Classes
Inherited from:
Rectangle
final override def foreachVertTail[U](f: Pt2 => U): Unit
Definition Classes
Inherited from:
Rectangle
Inherited from:
Rectangle
def iForeachSide(initCount: Int)(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.

Inherited from:
Polygon
def insVert(insertionPoint: Int, newVec: Pt2): Polygon

Insert vertex.

Insert vertex.

Inherited from:
Polygon
def insVerts(insertionPoint: Int, newVecs: Pt2*): Polygon

Insert vertices before the specified insertion vertex.

Insert vertices before the specified insertion vertex.

Inherited from:
Polygon
def map[B <: ElemValueN, BB <: PolygonLike[B]](f: Pt2 => 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
def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int, textColour: Colour, align: TextAlign): PolygonCompound
Inherited from:
Polygon
Inherited from:
Polygon
Inherited from:
Polygon
Inherited from:
Product
def ptInside(pt: Pt2): Boolean

Determines if the parameter point lies inside this Polygon.

Determines if the parameter point lies inside this Polygon.

Inherited from:
Polygon
override def reflect(lineLike: LineLike): PhiRectangle
Definition Classes
Inherited from:
PhiRectangle
override def rotate(angle: AngleVec): PhiRectangle
Definition Classes
Inherited from:
PhiRectangle
override def rotate180: Rect
Definition Classes
Inherited from:
Rect
override def rotate270: Rect
Definition Classes
Inherited from:
Rect
override def rotate90: Rect
Definition Classes
Inherited from:
Rect
override def scaleXY(xOperand: Double, yOperand: Double): Rect
Definition Classes
Inherited from:
Rect
final override def sd0Cen: Pt2
Definition Classes
Inherited from:
Rect
override def sd0CenX: Double

The X component of the centre or half way point of side 1 of this polygon. Side 1 starts at the vLast vertex and ends at the v1 vertex. This can be thought of as vertex 0.5.

The X component of the centre or half way point of side 1 of this polygon. Side 1 starts at the vLast vertex and ends at the v1 vertex. This can be thought of as vertex 0.5.

Definition Classes
Inherited from:
Rect
override def sd0CenY: Double

The Y component of the centre or half way point of side 1 of this polygon. Side 1 starts at the vLast vertex and ends at the v1 vertex. This can be thought of as vertex 0.5.

The Y component of the centre or half way point of side 1 of this polygon. Side 1 starts at the vLast vertex and ends at the v1 vertex. This can be thought of as vertex 0.5.

Definition Classes
Inherited from:
Rect
final override def sd1Cen: Pt2
Definition Classes
Inherited from:
Rect
final override def sd1CenX: Double
Definition Classes
Inherited from:
Rect
final override def sd1CenY: Double
Definition Classes
Inherited from:
Rect
final override def sd2Cen: Pt2
Definition Classes
Inherited from:
Rect
final override def sd2CenX: Double

The X component of the centre or half way point of side 3 of this polygon. Side 3 starts at the v2 vertex and ends at the v3 vertex. This can be thought of as vertex 2.5.

The X component of the centre or half way point of side 3 of this polygon. Side 3 starts at the v2 vertex and ends at the v3 vertex. This can be thought of as vertex 2.5.

Definition Classes
Inherited from:
Rect
final override def sd2CenY: Double

The Y component of the centre or half way point of side 3 of this polygon. Side 3 starts at the v2 vertex and ends at the v3 vertex. This can be thought of as vertex 2.5.

The Y component of the centre or half way point of side 3 of this polygon. Side 3 starts at the v2 vertex and ends at the v3 vertex. This can be thought of as vertex 2.5.

Definition Classes
Inherited from:
Rect
final override def sd3Cen: Pt2
Definition Classes
Inherited from:
Rect
override def sd3CenX: Double
Definition Classes
Inherited from:
Rect
override def sd3CenY: Double
Definition Classes
Inherited from:
Rect
override def shearX(operand: Double): 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.

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
Inherited from:
Polygon
override def shearY(operand: Double): 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.

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
Inherited from:
Polygon
def side(index: Int): LineSeg
Inherited from:
Polygon

Polygon side 0 from vertex 0 to vertex 1.

Polygon side 0 from vertex 0 to vertex 1.

Inherited from:
Polygon3Plus

Polygon side 1 from vertex 1 to vertex 2.

Polygon side 1 from vertex 1 to vertex 2.

Inherited from:
Polygon3Plus

Polygon side 2 from vertex 2 to vertex 3.

Polygon side 2 from vertex 2 to vertex 3.

Inherited from:
Polygon3Plus
def sidesFold[A](init: A)(f: (A, LineSeg) => A): A
Inherited from:
Polygon
override def sidesForeach[U](f: LineSeg => U): 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
Inherited from:
Polygon
def sidesIFlatMap[AA <: SeqImut[_]](initCount: Int)(f: (LineSeg, Int) => AA)(implicit build: ArrFlatBuilder[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.

Inherited from:
Polygon
def sidesIMap[A, AA <: SeqImut[A]](initCount: Int)(f: (LineSeg, Int) => A)(implicit build: ArrBuilder[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.

Inherited from:
Polygon
def sidesMap[A, AA <: SeqImut[A]](f: LineSeg => A)(implicit build: ArrBuilder[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.

Inherited from:
Polygon
def sline(index: Int): LineSeg
Inherited from:
Polygon
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
final def topLeft: Pt2
Inherited from:
Rectangularlign
final def topRight: Pt2
Inherited from:
Rectangularlign
Inherited from:
BoundedElem

Top right offset from centre.

Top right offset from centre.

Inherited from:
OrdinalEdgePoints
final override def unsafeVert(index: Int): Pt2
Definition Classes
Inherited from:
Rectangle
final override def v0: Pt2
Definition Classes
Inherited from:
Rect
final override def v0x: Double
Definition Classes
Inherited from:
Rect
final override def v0y: Double
Definition Classes
Inherited from:
Rect
final override def v1: Pt2
Definition Classes
Inherited from:
Rect
final override def v1x: Double
Definition Classes
Inherited from:
Rect
final override def v1y: Double
Definition Classes
Inherited from:
Rect
final def v2: Pt2
Inherited from:
Rect
final def v2x: Double
Inherited from:
Rect
final def v2y: Double
Inherited from:
Rect
final def v3: Pt2
Inherited from:
Rect
final def v3x: Double
Inherited from:
Rect
final def v3y: Double
Inherited from:
Rect
override def vLast: Pt2

The last vertex. The default convention places this just anti clockwise of 12 oclock.

The last vertex. The default convention places this just anti clockwise of 12 oclock.

Definition Classes
Inherited from:
Polygon3Plus
final def vert(index: Int): Pt2

Returns the vertex of the given index. If the index is out of range, it will just circle round the vertices, so for a triangle -1 gives v2, -2 gives v1, 3 gives v0, 4 gives v1 etc. It will not throw unlike the unsafeVert method.

Returns the vertex of the given index. If the index is out of range, it will just circle round the vertices, so for a triangle -1 gives v2, -2 gives v1, 3 gives v0, 4 gives v1 etc. It will not throw unlike the unsafeVert method.

Inherited from:
Polygon
override def vertsArray: Array[Double]
Definition Classes
Inherited from:
Rectangle
final override def vertsArrayX: Array[Double]
Definition Classes
Inherited from:
Rectangle
final override def vertsArrayY: Array[Double]
Definition Classes
Inherited from:
Rectangle
def vertsFlatMap[BB <: SeqImut[_]](f: Pt2 => BB)(implicit build: ArrFlatBuilder[BB]): BB

flatMap to an immutable Arr.

flatMap to an immutable Arr.

Inherited from:
Polygon
override def vertsFold[B](init: B)(f: (B, Pt2) => B): B
Definition Classes
Inherited from:
Polygon

This method should be overridden in final classes.

This method should be overridden in final classes.

Inherited from:
PolygonLike
final override def vertsForeach[U](f: Pt2 => U): Unit
Definition Classes
Inherited from:
Rectangle
def vertsIFlatMap[BB <: SeqImut[_]](iInit: Int)(f: (Pt2, Int) => BB)(implicit build: ArrFlatBuilder[BB]): BB

flatMap with index to an immutable Arr.

flatMap with index to an immutable Arr.

Inherited from:
Polygon
override def vertsIForeach[U](f: (Int, Pt2) => Any): Unit
Definition Classes
Inherited from:
Polygon
override def vertsMap[B, ArrB <: SeqImut[B]](f: Pt2 => B)(implicit build: ArrBuilder[B, ArrB]): ArrB
Definition Classes
Inherited from:
Polygon

Checks this polygon has at least 3 vertices.

Checks this polygon has at least 3 vertices.

Inherited from:
PolygonLike
final override def vertsNum: Int
Definition Classes
Inherited from:
Rectangle
override def vertsPrevForEach[U](f: (Pt2, Pt2) => U): Unit

This method does nothing if the vertNum < 2. Foreach vertex applies the side effecting function to the previous vertex with each vertex. The previous vertex to the first vertex is the last vertex of the PolygonLike. Note the function signature (previous, vertex) => U follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods'(accumulator, element) => B signature.

This method does nothing if the vertNum < 2. Foreach vertex applies the side effecting function to the previous vertex with each vertex. The previous vertex to the first vertex is the last vertex of the PolygonLike. Note the function signature (previous, vertex) => U follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods'(accumulator, element) => B signature.

Definition Classes
Inherited from:
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

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

Inherited from:
Polygon
Inherited from:
PhiRectangle
Inherited from:
Rectangle
Inherited from:
Rectangle
final def xBottomLeft: Double
Inherited from:
Rectangularlign
final def xBottomRight: Double
Inherited from:
Rectangularlign
final def xTopLeft: Double
Inherited from:
Rectangularlign
final def xTopRight: Double
Inherited from:
Rectangularlign
override def xVert(index: Int): Double
Definition Classes
Inherited from:
Rectangle
Inherited from:
Rectangle
final def yBottomLeft: Double
Inherited from:
Rectangularlign
final def yBottomRight: Double
Inherited from:
Rectangularlign
final def yTopLeft: Double
Inherited from:
Rectangularlign
final def yTopRight: Double
Inherited from:
Rectangularlign
override def yVert(index: Int): Double
Definition Classes
Inherited from:
Rectangle