TriangleImp

final case class TriangleImp(v1x: Double, v1y: Double, v2x: Double, v2y: Double, v3x: Double, v3y: Double) extends Triangle with AffinePreserve
Companion
object
trait Serializable
trait Product
trait Triangle
trait Polygon
trait Approx[Double]
trait Equals
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

override type ThisT = TriangleImp

Value members

Concrete methods

override def ptsTrans(f: Pt2 => Pt2): TriangleImp

A method to perform all the AffinePreserve transformations with a function from PT2 => PT2. This is delegated to the VertsTrans method as a TriangleImp is specified by its vertices. This is not the case for all Polygons.

A method to perform all the AffinePreserve transformations with a function from PT2 => PT2. This is delegated to the VertsTrans method as a TriangleImp is specified by its vertices. This is not the case for all Polygons.

Definition Classes
override def v2: Pt2
Definition Classes
override def vertsTrans(f: Pt2 => Pt2): TriangleImp
Definition Classes

Inherited methods

def active(id: Any): PolygonActive
Inherited from
Polygon
def activeChildren(id: Any, children: GraphicElems): PolygonCompound
Inherited from
Polygon
override def approx(that: Any, precision: Double): Boolean
Definition Classes
Inherited from
Polygon
override def attribs: Arr[XANumeric]
Definition Classes
Inherited from
Polygon
Inherited from
BoundedElem
@inline
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
def boundingHeight: Double
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
def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

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

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Inherited from
Shape

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.

Inherited from
BoundedElem
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
def cenVec: Vec2
Inherited from
Polygon
override def draw(lineColour: Colour, lineWidth: Double): PolygonDraw
Definition Classes
Inherited from
Polygon
def drawActive(lineColour: Colour, lineWidth: Double, pointerID: Any): PolygonCompound
Inherited from
Polygon
override def fill(colour: Colour): TriangleFill
Definition Classes
Inherited from
Triangle
def fillActive(fillColour: Colour, pointerID: Any): PolygonCompound
Inherited from
Polygon
def fillActiveDraw(fillColour: Colour, pointerID: Any, 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: Any, 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: Any, str: String, fontSize: Int, lineWidth: Double, lineColour: Colour, align: TextAlign): PolygonCompound
Inherited from
Polygon
override def fillInt(intValue: Int): TriangleFill
Definition Classes
Inherited from
Triangle
def fillText(fillColour: Colour, str: String, fontSize: Int, textColour: Colour, layer: Int): PolygonCompound
Inherited from
Polygon
def fillTextActive(fillColour: Colour, pointerEv: Any, str: String, fontSize: Int, fontColour: Colour, align: TextAlign): PolygonCompound
Inherited from
Polygon
override def foreachVert[U](f: Pt2 => U): Unit
Definition Classes
Inherited from
Triangle
override def foreachVertPairTail[U](f: (Double, Double) => U): Unit
Definition Classes
Inherited from
Triangle
override def foreachVertTail[U](f: Pt2 => U): Unit
Definition Classes
Inherited from
Triangle
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
override def negX: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def negY: ThisT
Definition Classes
Inherited from
SimilarPreserve
def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int, textColour: Colour, align: TextAlign): PolygonCompound
Inherited from
Polygon
@inline
def polygonMap(f: Pt2 => Pt2): Polygon
Inherited from
Polygon
def precisionDefault: Double
Inherited from
Polygon
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def prolign(matrix: ProlignMatrix): ThisT
Definition Classes
Inherited from
ProlignPreserve
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): ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate(angle: AngleVec): ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate180: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate270: ThisT
Definition Classes
Inherited from
SimilarPreserve
override def rotate90: ThisT
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
def sd1: LineSeg

Polygon side 1 from the last vertex to Vertex 1.

Polygon side 1 from the last vertex to Vertex 1.

Inherited from
Polygon3Plus
override def sd1Cen: Pt2
Definition Classes
Inherited from
Triangle
override def sd1CenX: 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
Triangle
override def sd1CenY: 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
Triangle
def sd2: LineSeg

Polygon side 2 from vertex 1 to vertex 2.

Polygon side 2 from vertex 1 to vertex 2.

Inherited from
Polygon3Plus
override def sd2Cen: Pt2
Definition Classes
Inherited from
Triangle
override def sd2CenX: Double
Definition Classes
Inherited from
Triangle
override def sd2CenY: Double
Definition Classes
Inherited from
Triangle
def sd3: LineSeg

Polygon side 3 from v2 to v3.

Polygon side 3 from v2 to v3.

Inherited from
Polygon3Plus
override def sd3Cen: Pt2
Definition Classes
Inherited from
Triangle
override def sd3CenX: 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
Triangle
override def sd3CenY: 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
Triangle
override def shearX(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
override def shearY(operand: Double): ThisT
Definition Classes
Inherited from
AffinePreserve
@inline
def side(index: Int): LineSeg
Inherited from
Polygon
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.

Inherited from
Polygon
def sideIForeach(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 sidesIFlatMap[AA <: ArrImut[_]](initCount: Int)(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.

Inherited from
Polygon
def sidesIMap[A, AA <: ArrImut[A]](initCount: Int)(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.

Inherited from
Polygon
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.

Inherited from
Polygon
override def slate(offset: Vec2Like): Triangle

Translate 2D geometric transformation on a Triangle returns a Triangle. The return type is narrowed in sub classes.

Translate 2D geometric transformation on a Triangle returns a Triangle. The return type is narrowed in sub classes.

Definition Classes
Inherited from
Triangle
override def slateXY(xDelta: Double, yDelta: Double): ThisT
Definition Classes
Inherited from
ProlignPreserve
def sline(index: Int): LineSeg
Inherited from
Polygon
Inherited from
BoundedElem

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

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

Inherited from
Polygon
Inherited from
BoundedElem
override def v1: Pt2
Definition Classes
Inherited from
Triangle
override def v3: Pt2
Definition Classes
Inherited from
Triangle
override def vLast: Pt2

The last vertex.

The last vertex.

Definition Classes
Inherited from
Polygon3Plus
override def vert(index: Int): Pt2
Definition Classes
Inherited from
Triangle
override def vertsArray: Array[Double]
Definition Classes
Inherited from
Triangle
override def vertsArrayX: Array[Double]
Definition Classes
Inherited from
Triangle
override def vertsArrayY: Array[Double]
Definition Classes
Inherited from
Triangle
def vertsFoldLeft[B](initial: B)(f: (B, Pt2) => B): B
Inherited from
Polygon
def vertsIFlatMap[BB <: ArrImut[_]](iInit: Int)(f: (Pt2, Int) => BB)(implicit build: ArrTFlatBuilder[BB]): BB

flatMap with index to an immutable Arr.

flatMap with index to an immutable Arr.

Inherited from
Polygon
def vertsMap[A, ArrT <: ArrImut[A]](f: Pt2 => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT
Inherited from
Polygon
override def vertsNum: Int
Definition Classes
Inherited from
Triangle
def xCen: Double
Inherited from
Triangle
override def xVert(index: Int): Double
Definition Classes
Inherited from
Triangle
def yCen: Double
Inherited from
Triangle
override def yVert(index: Int): Double
Definition Classes
Inherited from
Triangle