HexParrX

ostrat.geom.HexParrX
See theHexParrX companion object
final class HexParrX(val unsafeArray: Array[Double]) extends Hexlign with Show2[Double, Pt2]

Regular Hexagon where two of the sides are parallel to the X Axis

Attributes

Companion:
object
Graph
Supertypes
trait Show2[Double, Pt2]
trait TypeStrN
trait ShowN
trait Hexlign
trait HexReg
trait ShowDec
trait Show
trait TypeStr
trait Polygon
trait SeqSpec[Pt2]
trait SpecialT
trait SeqLike[Pt2]
trait Approx[Double]
trait Equals
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

override type ThisT = HexParrX

Gives the final type of this class.

Gives the final type of this class.

Attributes

Inherited types

override type SideT = LineSeg

Attributes

Inherited from:
Polygon

Value members

Concrete methods

override def diameterIn: Double

The diameter of the inner circle of this regular hexagon. The shorter diameter from the centre of a side to the centre of the opposite side.

The diameter of the inner circle of this regular hexagon. The shorter diameter from the centre of a side to the centre of the opposite side.

Attributes

Definition Classes
override def diameterOut: Double

The diameter of the outer circle of this regular hexagon. The longer diameter length from a vertex to the opposite vertex. This lenght is twice the length of the hexagon side.

The diameter of the outer circle of this regular hexagon. The longer diameter length from a vertex to the opposite vertex. This lenght is twice the length of the hexagon side.

Attributes

Definition Classes
override def fromArray(array: Array[Double]): HexParrX

Attributes

Definition Classes
override def name1: String

1st parameter name.

1st parameter name.

Attributes

Definition Classes
override def name2: String

2nd parameter name.

2nd parameter name.

Attributes

Definition Classes
override def negX: HexParrX

Mirror, reflection 2D transformation on this HexXlign across the Y axis, negates X, returns a HexXlign.

Mirror, reflection 2D transformation on this HexXlign across the Y axis, negates X, returns a HexXlign.

Attributes

Definition Classes
override def negY: HexParrX

Mirror, reflection 2D geometric transformation on this HexXlign across the X axis, negates Y, returns a HexXlign.

Mirror, reflection 2D geometric transformation on this HexXlign across the X axis, negates Y, returns a HexXlign.

Attributes

Definition Classes
override def prolign(matrix: ProlignMatrix): HexParrX

Prolign 2d geometric transformations, similar transformations that retain alignment with the axes on this HexXlign returns a HexXlign.

Prolign 2d geometric transformations, similar transformations that retain alignment with the axes on this HexXlign returns a HexXlign.

Attributes

Definition Classes
override def radiusIn: Double

The radius of the inner circle of this regular hexagon. The shorter radius from the centre of the hexagon to the centre of a side.

The radius of the inner circle of this regular hexagon. The shorter radius from the centre of the hexagon to the centre of a side.

Attributes

Definition Classes
override def radiusOut: Double

The radius of the outer circle of this regular hexagon. The longer radius length from the centre of the Hexagon to a vertex. Also the length of the hexagon side.

The radius of the outer circle of this regular hexagon. The longer radius length from the centre of the Hexagon to a vertex. Also the length of the hexagon side.

Attributes

Definition Classes
override def rotate180: HexParrX

Rotate 180 degrees 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexXlign.

Rotate 180 degrees 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexXlign.

Attributes

Definition Classes
override def rotate270: HexParrY

Rotate 270 degrees in a positive or clockwise direction 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexYlign. Note the change in type. Equivalent to a 90 degree negative or clock wise transformation.

Rotate 270 degrees in a positive or clockwise direction 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexYlign. Note the change in type. Equivalent to a 90 degree negative or clock wise transformation.

Attributes

Definition Classes
override def rotate90: HexParrY

Rotate 90 degrees in a positive or clockwise direction 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexYlign. Note the change in type. Equivalent to a 270 degree negative or clock wise transformation.

Rotate 90 degrees in a positive or clockwise direction 2D geometric transformation on this HexXlign across the Y axis, negates X, returns a HexYlign. Note the change in type. Equivalent to a 270 degree negative or clock wise transformation.

Attributes

Definition Classes
override def scale(operand: Double): HexParrX

Uniform scaling against both X and Y axes 2D geometric transformation on this HexXlign returning a HexXlign.

Uniform scaling against both X and Y axes 2D geometric transformation on this HexXlign returning a HexXlign.

Attributes

Definition Classes
override def show1: Double

Element 1 of this Show 2 element product.

Element 1 of this Show 2 element product.

Attributes

Definition Classes
override def show2: Pt2

Element 2 of this Show 2 element product.

Element 2 of this Show 2 element product.

Attributes

Definition Classes
override def slate(delta: Vec2Like): HexParrX

Translate 2D geometric transformation on this HexYlign returns a HexYlign.

Translate 2D geometric transformation on this HexYlign returns a HexYlign.

Attributes

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

Translate 2D geometric transformation on this HexXlign returns a HexXlign.

Translate 2D geometric transformation on this HexXlign returns a HexXlign.

Attributes

Definition Classes
override def syntaxDepth: Int

Attributes

Definition Classes
override def typeStr: String

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

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

maps the vertices of this HexParrX to a new HexparrX instance.

maps the vertices of this HexParrX to a new HexparrX instance.

Attributes

Definition Classes
override def width: Double

Attributes

Definition Classes

Inherited methods

def active(id: AnyRef): PolygonActive

Attributes

Inherited from:
Polygon
def activeChildren(id: AnyRef, children: GraphicElems): PolygonCompound

Attributes

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

Attributes

Inherited from:
DblNSeqSpec
override def approx(that: Any, precision: Double): Boolean

Attributes

Definition Classes
Inherited from:
Polygon
def arrTrans(f: Pt2 => Pt2): Array[Double]

Attributes

Inherited from:
Pt2SeqLike
override def attribs: RArr[XANumeric]

Attributes

Definition Classes
Inherited from:
Polygon

Attributes

Inherited from:
BoundedElem
final def boundCen: Pt2

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

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

Attributes

Inherited from:
BoundedElem

Attributes

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

Attributes

Definition Classes
Inherited from:
Polygon

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Attributes

Inherited from:
BoundedElem

Attributes

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

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Attributes

Inherited from:
Shape
final override def cen: Pt2

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

Attributes

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

Attributes

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.

Attributes

Inherited from:
Polygon

Attributes

Inherited from:
Polygon
final override def cenX: Double

The X component of the centre.

The X component of the centre.

Attributes

Definition Classes
Inherited from:
HexReg
final override def cenY: Double

The Y component of the centre.

The Y component of the centre.

Attributes

Definition Classes
Inherited from:
HexReg
override def dblBufferAppend(buffer: ArrayBuffer[Double], elem: Pt2): Unit

Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.

Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.

Attributes

Definition Classes
Inherited from:
Dbl2SeqLike
override def draw(lineColour: Colour, lineWidth: Double): 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.

Attributes

Definition Classes
Inherited from:
Polygon
def drawActive(lineColour: Colour, lineWidth: Double, pointerID: AnyRef): PolygonCompound

Attributes

Inherited from:
Polygon

Attributes

Inherited from:
Polygon
def el1Show(style: ShowStyle, maxPlaces: Int): String

Attributes

Inherited from:
Show2
def el2Show(style: ShowStyle, maxPlaces: Int): String

Attributes

Inherited from:
Show2

Attributes

Inherited from:
Dbl2SeqSpec

Attributes

Inherited from:
Dbl2SeqSpec
override def elemProdSize: Int

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

Attributes

Definition Classes
Inherited from:
Dbl2SeqLike

A StrArr Arr of the element type names of this Show Product class.

A StrArr Arr of the element type names of this Show Product class.

Attributes

Inherited from:
Show2
override 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.

Attributes

Definition Classes
Inherited from:
SeqSpec
final override def fElemStr: Pt2 => String

Attributes

Definition Classes
Inherited from:
Pt2SeqLike
override def fill(fillColour: Colour): PolygonFill

Returns a fill graphic of this geometric object.

Returns a fill graphic of this geometric object.

Attributes

Definition Classes
Inherited from:
Polygon
def fillActive(fillColour: Colour, pointerID: AnyRef): PolygonCompound

Attributes

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.

Attributes

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

Attributes

Definition Classes
Inherited from:
Polygon
def fillDrawActive(fillColour: Colour, pointerID: AnyRef, lineWidth: Double, lineColour: Colour): PolygonCompound

Attributes

Inherited from:
Polygon
def fillDrawText(fillColour: Colour, str: String, fontSize: Int, lineColour: Colour, lineWidth: Double): PolygonCompound

Attributes

Inherited from:
Polygon
def fillDrawTextActive(fillColour: Colour, pointerID: AnyRef, str: String, fontSize: Int, lineWidth: Double, lineColour: Colour, align: TextAlign): PolygonCompound

Attributes

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

Attributes

Definition Classes
Inherited from:
Polygon
def fillText(fillColour: Colour, str: String, fontSize: Int, textColour: Colour, layer: Int): PolygonCompound

Attributes

Inherited from:
Polygon
def fillTextActive(fillColour: Colour, pointerEv: AnyRef, str: String, fontSize: Int, fontColour: Colour, align: TextAlign): PolygonCompound

Attributes

Inherited from:
Polygon
def flatMap[B <: ValueNElem, BB <: PolygonLike[B]](f: Pt2 => SeqLike[B])(implicit build: PolygonLikeFlatBuilder[B, BB]): BB

FlatMaps the vertices of this PolygonLike to a new to PolygonLike class of type BB.

FlatMaps the vertices of this PolygonLike to a new to PolygonLike class of type BB.

Attributes

Inherited from:
PolygonLike
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.

Attributes

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

Insert vertex.

Insert vertex.

Attributes

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

Insert vertices before the specified insertion vertex.

Insert vertices before the specified insertion vertex.

Attributes

Inherited from:
Polygon
def map[B <: ValueNElem, BB <: PolygonLike[B]](f: Pt2 => B)(implicit build: PolygonLikeMapBuilder[B, BB]): BB

Maps the vertices of this PolygonLike to a new to PolygonLike class of type BB.

Maps the vertices of this PolygonLike to a new to PolygonLike class of type BB.

Attributes

Inherited from:
PolygonLike
def mapHexReg(f: Pt2 => Pt2): HexReg

Attributes

Inherited from:
HexReg
override def numParams: Int

Number of parameter constituents of this class.

Number of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
TypeStr2
override def opt1: Option[A1]

The optional default value for parameter 1.

The optional default value for parameter 1.

Attributes

Definition Classes
Inherited from:
Show2
override def opt2: Option[A2]

The optional default value for parameter 2.

The optional default value for parameter 2.

Attributes

Definition Classes
Inherited from:
Show2
override def paramNames: StrArr

Sequence of the names of parameter constituents of this class.

Sequence of the names of parameter constituents of this class.

Attributes

Definition Classes
Inherited from:
Show2
def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int, textColour: Colour, align: TextAlign): PolygonCompound

Attributes

Inherited from:
Polygon

Attributes

Inherited from:
Polygon

Attributes

Inherited from:
Polygon
def ptInside(pt: Pt2): Boolean

Determines if the parameter point lies inside this Polygon.

Determines if the parameter point lies inside this Polygon.

Attributes

Inherited from:
Polygon
override def reflect(lineLike: LineLike): HexReg

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

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

Attributes

Definition Classes
Inherited from:
HexReg
override def rotate(angle: AngleVec): HexReg

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.

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.

Attributes

Definition Classes
Inherited from:
HexReg
override def scaleXY(xOperand: Double, yOperand: Double): 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.

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.

Attributes

Definition Classes
Inherited from:
Polygon
final def sd0Cen: Pt2

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

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

Attributes

Inherited from:
Polygon
final def sd0CenX: Double

The X component of the centre or half way point of side 0 of this polygon.

The X component of the centre or half way point of side 0 of this polygon.

Attributes

Inherited from:
Polygon
final def sd0CenY: Double

The Y component of the centre or half way point of side 0 of this polygon.

The Y component of the centre or half way point of side 0 of this polygon.

Attributes

Inherited from:
Polygon
final def sd1Cen: Pt2

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

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

Attributes

Inherited from:
Polygon3Plus
final def sd1CenX: Double

The X component of the centre or half way point of side 1 of this polygon. The midway point between v0 and v1.

The X component of the centre or half way point of side 1 of this polygon. The midway point between v0 and v1.

Attributes

Inherited from:
Polygon3Plus
final def sd1CenY: Double

The Y component of the centre or half way point of side 1 of this polygon. the midway point between v1 and v2.

The Y component of the centre or half way point of side 1 of this polygon. the midway point between v1 and v2.

Attributes

Inherited from:
Polygon3Plus
final def sd2Cen: Pt2

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

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

Attributes

Inherited from:
Polygon3Plus
final def sd2CenX: Double

The X component of the centre or half way point of side 2 of this polygon.

The X component of the centre or half way point of side 2 of this polygon.

Attributes

Inherited from:
Polygon3Plus
final def sd2CenY: Double

The Y component of the centre or half way point of side 2 of this polygon.

The Y component of the centre or half way point of side 2 of this polygon.

Attributes

Inherited from:
Polygon3Plus
final def sd3Cen: Pt2

The centre or half way point of side 3 of this polygon.

The centre or half way point of side 3 of this polygon.

Attributes

Inherited from:
Polygon4Plus
final def sd3CenX: Double

The X component of the centre or half way point of side 3 of this polygon.

The X component of the centre or half way point of side 3 of this polygon.

Attributes

Inherited from:
Polygon4Plus
final def sd3CenY: Double

The Y component of the centre or half way point of side 3 of this polygon.

The Y component of the centre or half way point of side 3 of this polygon.

Attributes

Inherited from:
Polygon4Plus
final inline def sd4Cen: Pt2

The centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

The centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

Attributes

Inherited from:
Polygon5Plus
final def sd4CenX: Double

The X component of the centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

The X component of the centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

Attributes

Inherited from:
Polygon5Plus
final def sd4CenY: Double

The Y component of the centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

The Y component of the centre or half way point of side 5 of this polygon. Side 5 starts at the v4 vertex and ends at the v5 vertex. This can be thought of as vertex 4.5.

Attributes

Inherited from:
Polygon5Plus
final inline def sd5Cen: Pt2

The centre or half way point of side 5 of this polygon. Side 5 starts at the v5 vertex and ends at the v6 vertex. This can be thought of as vertex 5.5.

The centre or half way point of side 5 of this polygon. Side 5 starts at the v5 vertex and ends at the v6 vertex. This can be thought of as vertex 5.5.

Attributes

Inherited from:
Polygon6Plus
final def sd5CenX: Double

The X component of the centre or half way point of side 6 of this polygon.

The X component of the centre or half way point of side 6 of this polygon.

Attributes

Inherited from:
Polygon6Plus
final def sd5CenY: Double

The Y component of the centre or half way point of side 5 of this polygon.

The Y component of the centre or half way point of side 5 of this polygon.

Attributes

Inherited from:
Polygon6Plus
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.

Attributes

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.

Attributes

Definition Classes
Inherited from:
Polygon
override def show(style: ShowStyle): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
ShowN
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
ShowN
def showDec(style: ShowStyle, maxPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Attributes

Inherited from:
Show
def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): StrArr

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

Attributes

Inherited from:
Show2

Attributes

Inherited from:
ShowN
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String

Attributes

Inherited from:
ShowN

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

A StrArr Arr collection of the show methods return values of the elements of this Show Product class.

Attributes

Inherited from:
ShowN
def side(index: Int): LineSeg

Attributes

Inherited from:
Polygon
final def side0: LineSeg

Polygon side 0 from vertex 0 to vertex 1.

Polygon side 0 from vertex 0 to vertex 1.

Attributes

Inherited from:
Polygon
final def side1: LineSeg

Polygon side 1 from vertex 0 to vertex 1.

Polygon side 1 from vertex 0 to vertex 1.

Attributes

Inherited from:
Polygon3Plus
final def side2: LineSeg

Polygon side 2 from vertex 1 to vertex 2.

Polygon side 2 from vertex 1 to vertex 2.

Attributes

Inherited from:
Polygon3Plus
def sidesFold[A](init: A)(f: (A, LineSeg) => A): A

Attributes

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.

Attributes

Definition Classes
Inherited from:
Polygon
def sidesIFlatMap[AA <: Arr[_]](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.

Attributes

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

Attributes

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

Attributes

Inherited from:
Polygon
def sline(index: Int): LineSeg

Attributes

Inherited from:
Polygon
final override def ssElem(d1: Double, d2: Double): Pt2

Method for creating new specifying sequence elements from 2 Doubles In the case of Dbl2Arr this will be thee type of the elements of the sequence.

Method for creating new specifying sequence elements from 2 Doubles In the case of Dbl2Arr this will be thee type of the elements of the sequence.

Attributes

Definition Classes
Inherited from:
Pt2SeqSpec
override def ssElemEq(a1: Pt2, a2: Pt2): Boolean

Checks if 2 values of the specifying sequence are equal.

Checks if 2 values of the specifying sequence are equal.

Attributes

Definition Classes
Inherited from:
Dbl2SeqSpec
def ssFold[B](initVal: B)(f: (B, Pt2) => B): B

specifying -sequence fold.

specifying -sequence fold.

Attributes

Inherited from:
SeqSpec

Attributes

Inherited from:
ValueNSeqSpec
def ssForeach[U](f: Pt2 => U): Unit

Performs a side effecting function on each element of the specifying sequence in order.

Performs a side effecting function on each element of the specifying sequence in order.

Attributes

Inherited from:
SeqSpec
def ssForeachPairTail[U](f: (Double, Double) => U): Unit

Attributes

Inherited from:
Dbl2SeqSpec
def ssIForeach[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.

Attributes

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

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

Attributes

Inherited from:
SeqSpec
override def ssIndex(index: Int): A

Accesses the specifying sequence element by a 0 based index.

Accesses the specifying sequence element by a 0 based index.

Attributes

Definition Classes
Inherited from:
Dbl2SeqSpec
def ssLast: A

Last element of the specifying sequence.

Last element of the specifying sequence.

Attributes

Inherited from:
SeqSpec
override def ssLength: 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

Attributes

Definition Classes
Inherited from:
ValueNSeqSpec
def ssMap[B, ArrB <: Arr[B]](f: Pt2 => B)(implicit ev: ArrMapBuilder[B, ArrB]): ArrB

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

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

Attributes

Inherited from:
SeqSpec
override def ssReverse: ThisT

Reverses the order of the elements of the specifying sequence.

Reverses the order of the elements of the specifying sequence.

Attributes

Definition Classes
Inherited from:
DblNSeqSpec
def ssReverseForeach[U](f: Pt2 => U): Unit

Performs a side effecting function on each element of the specifying-sequence in reverse order. 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.

Performs a side effecting function on each element of the specifying-sequence in reverse order. 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.

Attributes

Inherited from:
SeqSpec
def ssTailFold[B](initial: B)(f: (B, Pt2) => B): B

FoldLeft over the tail of the specifying sequence.

FoldLeft over the tail of the specifying sequence.

Attributes

Inherited from:
SeqSpec
def ssTailForeach[U](f: Pt2 => U): Unit

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.

Attributes

Inherited from:
SeqSpec
override def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

Attributes

Definition Classes
Inherited from:
Show2

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec

Attributes

Inherited from:
BoundedElem
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Show -> Any
Inherited from:
Show

Attributes

Inherited from:
BoundedElem

Maps the 1st Double of each element to a new Array[Double], copies the 2nd elements.

Maps the 1st Double of each element to a new Array[Double], copies the 2nd elements.

Attributes

Inherited from:
Dbl2SeqSpec

Maps the 2nd Double of each element with the parameter function to a new Array[Double], copies the 1st Double of each element.

Maps the 2nd Double of each element with the parameter function to a new Array[Double], copies the 1st Double of each element.

Attributes

Inherited from:
Dbl2SeqSpec
final def unsafeLength: 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.

Attributes

Inherited from:
DblNSeqLike

Maps the 2 Doubles of each element to a new Array[Double].

Maps the 2 Doubles of each element to a new Array[Double].

Attributes

Inherited from:
Dbl2SeqSpec

Attributes

Inherited from:
Polygon

Attributes

Inherited from:
Polygon

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.

Attributes

Inherited from:
DblNSeqSpec
def unsafeSameSize(length: Int): ThisT

Attributes

Inherited from:
DblNSeqLike
override def unsafeSetElem(index: Int, newElem: Pt2): Unit

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.

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.

Attributes

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

Attributes

Inherited from:
SeqLike
final def unsafeVert(index: Int): Pt2

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.

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.

Attributes

Inherited from:
Polygon
final def v0: Pt2

Vertex v0, will throw on a 0 vertices polygon. By convention the default position for this vertex is at the top or 12 o'clock position of the polygon or the vertex immediately anti clockwise if there is no vertex in this position.

Vertex v0, will throw on a 0 vertices polygon. By convention the default position for this vertex is at the top or 12 o'clock position of the polygon or the vertex immediately anti clockwise if there is no vertex in this position.

Attributes

Inherited from:
Polygon
final def v0x: Double

The X component of vertex v0, will throw on a 0 vertices polygon.

The X component of vertex v0, will throw on a 0 vertices polygon.

Attributes

Inherited from:
Polygon
final def v0y: Double

The Y component of vertex v1, will throw on a 0 vertices polygon.

The Y component of vertex v1, will throw on a 0 vertices polygon.

Attributes

Inherited from:
Polygon
final def v1: Pt2

The v1 Vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 1 immediately clockwise from 12 o'clock.

The v1 Vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v1x: Double

The X component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.

The X component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v1y: Double

The Y component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.

The Y component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v2: Pt2

The v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.

The v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v2x: Double

The X component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

The X component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v2y: Double

The Y component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.

The Y component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon3Plus
final def v3: Pt2

Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon4Plus
final def v3x: Double

The X component of vertex 3. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

The X component of vertex 3. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon4Plus
final def v3y: Double

The Y component of the 4th Vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

The Y component of the 4th Vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon4Plus
final inline def v4: Pt2

Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon5Plus
final def v4x: Double

The X component of the vertex 4.

The X component of the vertex 4.

Attributes

Inherited from:
Polygon5Plus
final def v4y: Double

The Y component of the vertex 4.

The Y component of the vertex 4.

Attributes

Inherited from:
Polygon5Plus
final def v5: Pt2

Vertex 5. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Vertex 5. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.

Attributes

Inherited from:
Polygon6Plus
final def v5x: Double

The X component of the 6th Vertex.

The X component of the 6th Vertex.

Attributes

Inherited from:
Polygon6Plus
final def v5y: Double

The Y component of the 6th Vertex.

The Y component of the 6th Vertex.

Attributes

Inherited from:
Polygon6Plus
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.

Attributes

Inherited from:
Polygon
final def vLastX: Double

Attributes

Inherited from:
Polygon
final def vLastY: Double

Attributes

Inherited from:
Polygon
def vert(index: Int): VT

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.

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.

Attributes

Inherited from:
PolygonLike
final def vertPairsTailForeach[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. For maximum efficiency override the implementation in sub classes.

Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex. For maximum efficiency override the implementation in sub classes.

Attributes

Inherited from:
Polygon
def vertsFlatMap[BB <: Arr[_]](f: Pt2 => BB)(implicit build: ArrFlatBuilder[BB]): BB

flatMap to an immutable Arr.

flatMap to an immutable Arr.

Attributes

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

Folds over the vertices.

Folds over the vertices.

Attributes

B

type of the accumulator return value of this method.

Definition Classes
Inherited from:
Polygon

This method should be overridden in final classes.

This method should be overridden in final classes.

Attributes

Inherited from:
PolygonLike
final override def vertsForeach[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.

Attributes

Definition Classes
Inherited from:
Polygon
def vertsIFlatMap[BB <: Arr[_]](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.

Attributes

Inherited from:
Polygon
override def vertsIForeach[U](f: (Int, Pt2) => U): Unit

Index with foreach on each vertx. Applies the side effecting function on the index with the value of each vertex. 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 each vertx. Applies the side effecting function on the index with the value of each vertex. 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.

Attributes

Definition Classes
Inherited from:
Polygon
override def vertsMap[B, ArrB <: Arr[B]](f: Pt2 => B)(implicit build: ArrMapBuilder[B, ArrB]): ArrB

Maps the vertices of this polygon to an immutable Array like sequence of type B.

Maps the vertices of this polygon to an immutable Array like sequence of type B.

Attributes

ArrB

The type of the immutable Array like sequence of B.

B

The element type of the returned sequence.

Returns:

the immutable sequence collection by applying the supplied function to each vertex.

Definition Classes
Inherited from:
Polygon

Checks this polygon has at least 3 vertices.

Checks this polygon has at least 3 vertices.

Attributes

Inherited from:
PolygonLike
final override def vertsNum: Int

A Hexagon has 6 vertices.

A Hexagon has 6 vertices.

Attributes

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

Attributes

Inherited from:
PolygonLike
final def vertsTailForeach[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.

Attributes

Inherited from:
Polygon
def xVert(index: Int): Double

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

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

Attributes

Inherited from:
Polygon
def yVert(index: Int): Double

Returns the Y component of the vertex of the given number. Will throw an exception if the vertex index is out of range. For maximum efficiency override the implementation in sub classes.

Returns the Y component of the vertex of the given number. Will throw an exception if the vertex index is out of range. For maximum efficiency override the implementation in sub classes.

Attributes

Inherited from:
Polygon

Concrete fields

Implicits

Implicits

implicit override def showT1: ShowT[Double]

The ShowT type class instance for the 1st element of this 2 element product.

The ShowT type class instance for the 1st element of this 2 element product.

Attributes

Definition Classes
implicit override def showT2: ShowT[Pt2]

The ShowT type class instance for the 2nd element of this 2 element product.

The ShowT type class instance for the 2nd element of this 2 element product.

Attributes

Definition Classes