Hexlign

trait Hexlign extends HexReg

A regular Hexagon aligned to the X and Y axes.

trait HexReg
trait ShowDec
trait Show
trait TypeStr
trait Polygon
trait Approx[Double]
trait Equals
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any
class HexParrX
class HexParrY

Type members

Inherited types

override type SideT = LineSeg
Inherited from:
Polygon

Value members

Abstract methods

def height: Double
def width: Double

Concrete methods

override def rotate180: Hexlign
Definition Classes
override def rotate270: Hexlign
Definition Classes
override def rotate90: Hexlign
Definition Classes

Inherited methods

def active(id: AnyRef): PolygonActive
Inherited from:
Polygon
def activeChildren(id: AnyRef, 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
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.

Inherited from:
WithCentre
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
def cenX: Double

The X component of the centre.

The X component of the centre.

Inherited from:
WithCentre
def cenY: Double

The Y component of the centre.

The Y component of the centre.

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

Inherited from:
HexReg
@inline
final 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.

Inherited from:
HexReg
override def draw(lineColour: Colour, lineWidth: Double): PolygonDraw
Definition Classes
Inherited from:
Polygon
def drawActive(lineColour: Colour, lineWidth: Double, pointerID: AnyRef): PolygonCompound
Inherited from:
Polygon
def dropVert(v: Int): Polygon
Inherited from:
Polygon
override def fill(fillColour: Colour): PolygonFill
Definition Classes
Inherited from:
Polygon
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): PolygonFill
Definition Classes
Inherited from:
Polygon
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:
HexReg
override def foreachVertTail[U](f: Pt2 => U): Unit
Definition Classes
Inherited from:
HexReg
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
override def negX: HexReg

Mirror, reflection transformation of HexReg across the Y axis, returns a HexReg.

Mirror, reflection transformation of HexReg across the Y axis, returns a HexReg.

Definition Classes
Inherited from:
HexReg
override def negY: HexReg

Mirror, reflection transformation of a HexReg across the X axis, returns a HexReg.

Mirror, reflection transformation of a HexReg across the X axis, returns a HexReg.

Definition Classes
Inherited from:
HexReg
def parentFillText(pointerID: Any, fillColour: Colour, str: String, fontSize: Int, textColour: Colour, align: TextAlign): PolygonCompound
Inherited from:
Polygon
@inline
Inherited from:
Polygon
def precisionDefault: Double
Inherited from:
Polygon
override def prolign(matrix: ProlignMatrix): HexReg

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

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

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

Inherited from:
HexReg
@inline
final 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.

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

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

Uniform scaling against both X and Y axes transformation on a HexReg returning a HexReg. Use the xyScale method for differential scaling. The return type of this method will be narrowed further in descendant traits / classes.

Uniform scaling against both X and Y axes transformation on a HexReg returning a HexReg. Use the xyScale method for differential scaling. The return type of this method will be narrowed further in descendant traits / classes.

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.

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

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

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

Inherited from:
Polygon3Plus
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

Inherited from:
Polygon3Plus
def sd1CenX: Double

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

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

Inherited from:
Polygon3Plus
def sd1CenY: Double

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

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

Inherited from:
Polygon3Plus
def sd2Cen: Pt2

The centre or half way point of side 2 of this polygon. Side 2 starts at the v2 vertex and ends at the v3 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 v2 vertex and ends at the v3 vertex. This can be thought of as vertex 2.5.

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

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

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

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

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

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

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

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

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

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

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

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.

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
override def show(style: ShowStyle): String
Definition Classes
Inherited from:
ShowDec
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 ShowDecT type class instances.

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

Inherited from:
ShowDec
def showDec(style: ShowStyle, maxPlaces: Int): String

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

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

Inherited from:
ShowDec
@inline
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 slate(offset: Vec2Like): Polygon

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

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

Inherited from:
Polygon
override def slateXY(xDelta: Double, yDelta: Double): HexReg

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

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

Definition Classes
Inherited from:
HexReg
def sline(index: Int): LineSeg
Inherited from:
Polygon
override def str: String
Definition Classes
Inherited from:
ShowDec
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Inherited from:
ShowDec
def str1: String

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.

Inherited from:
ShowDec
def str2: String

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

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

Inherited from:
ShowDec
def str3: String

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

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

Inherited from:
ShowDec
def syntaxDepth: Int
Inherited from:
Show
Inherited from:
BoundedElem
override def toString: String
Definition Classes
Show -> Any
Inherited from:
Show
Inherited from:
BoundedElem
override def typeStr: String
Definition Classes
Inherited from:
HexReg
override def unsafeVert(index: Int): Pt2
Definition Classes
Inherited from:
HexReg
def v0: Pt2

Vertex v0, will throw on a 0 vertices polygon.

Vertex v0, will throw on a 0 vertices polygon.

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

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

Inherited from:
Polygon
def v1: Pt2

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 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.

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

Inherited from:
Polygon3Plus
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 the 0 vertex at or 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 the 0 vertex at or immediately clockwise from 12 o'clock.

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

Inherited from:
Polygon3Plus
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 the 0 vertex at or 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 the 0 vertex at or immediately clockwise from 12 o'clock.

Inherited from:
Polygon3Plus
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 the 0 vertex at or 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 the 0 vertex at or immediately clockwise from 12 o'clock.

Inherited from:
Polygon3Plus
def v3: Pt2

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

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

Inherited from:
Polygon4Plus
def v3x: Double

The X component of vertex 3. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 0 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 the vertex 0 immediately clockwise from 12 o'clock.

Inherited from:
Polygon4Plus
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 the 1st vertex 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 the 1st vertex immediately clockwise from 12 o'clock.

Inherited from:
Polygon4Plus
def v4: Pt2

Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 0 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 0 immediately clockwise from 12 o'clock.

Inherited from:
Polygon5Plus
def v4x: Double

The X component of the vertex 4.

The X component of the vertex 4.

Inherited from:
Polygon5Plus
def v4y: Double

The Y component of the vertex 4.

The Y component of the vertex 4.

Inherited from:
Polygon5Plus
def v5: Pt2

Vertex 5. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 0 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 0 immediately clockwise from 12 o'clock.

Inherited from:
Polygon6Plus
def v5x: Double

The X component of the 6th Vertex.

The X component of the 6th Vertex.

Inherited from:
Polygon6Plus
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:
HexReg
override def vertsArrayX: Array[Double]
Definition Classes
Inherited from:
HexReg
override def vertsArrayY: Array[Double]
Definition Classes
Inherited from:
HexReg
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
def vertsForAll(f: Pt2 => Boolean): Boolean

This method should be overridden in final classes.

This method should be overridden in final classes.

Inherited from:
PolygonLike
override def vertsForeach[U](f: Pt2 => U): Unit
Definition Classes
Inherited from:
HexReg
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
def vertsMin3: Boolean

Checks this polygon has at least 3 vertices.

Checks this polygon has at least 3 vertices.

Inherited from:
PolygonLike
final override def vertsNum: Int

A Hexagon has 6 vertices.

A Hexagon has 6 vertices.

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

Definition Classes
Inherited from:
HexReg
def y5: Double

The Y component of the 6th Vertex.

The Y component of the 6th Vertex.

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

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

Definition Classes
Inherited from:
HexReg