HexParrY

final class HexParrY(val width: Double, val cenX: Double, val cenY: Double) extends Hexlign with Show2[Double, Pt2] with Dbl3Elem

Regular Hexagon where two of the sides are parallel to the Y Axis. This will be the standard Hex for the Tiling module.

Companion
object
trait Dbl3Elem
trait DblNElem
trait SpecialT
trait Show2[Double, Pt2]
trait Hexlign
trait HexReg
trait Show
trait Polygon
trait Approx[Double]
trait Equals
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override def cen: Pt2
Definition Classes
override def dbl1: Double
Definition Classes
override def dbl2: Double
Definition Classes
override def dbl3: Double
Definition Classes
override def diameterIn: Double
Definition Classes
override def height: Double
Definition Classes
override def name1: String
Definition Classes
override def name2: String
Definition Classes
override def negX: HexParrY

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

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

Definition Classes
override def negY: HexParrY

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

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

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

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

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

Definition Classes
override def rotate180: HexParrY

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

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

Definition Classes
override def rotate270: HexParrY

Rotate 270 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 90 degrees clockwise.

Rotate 270 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 90 degrees clockwise.

Definition Classes
override def rotate90: HexParrX

Rotate 90 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 270 degrees clockwise.

Rotate 90 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 270 degrees clockwise.

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

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

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

Definition Classes
override def sd1Cen: Pt2
Definition Classes
override def sd1CenX: Double
Definition Classes
override def sd1CenY: Double
Definition Classes
override def sd2Cen: Pt2
Definition Classes
override def sd2CenX: Double
Definition Classes
override def sd2CenY: Double
Definition Classes
override def sd3Cen: Pt2
Definition Classes
override def sd3CenX: Double
Definition Classes
override def sd3CenY: Double
Definition Classes
override def sd4Cen: Pt2
Definition Classes
override def sd4CenX: Double
Definition Classes
override def sd4CenY: Double
Definition Classes
override def sd5Cen: Pt2
Definition Classes
override def sd5CenX: Double
Definition Classes
override def sd5CenY: Double
Definition Classes
override def sd6Cen: Pt2
Definition Classes
override def sd6CenX: Double
Definition Classes
override def sd6CenY: Double
Definition Classes
override def show1: Double
Definition Classes
override def show2: Pt2
Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): HexParrY

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

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

Definition Classes
override def syntaxdepth: Int
Definition Classes
override def typeStr: String
Definition Classes
@inline
override def v1: Pt2
Definition Classes
override def v1x: Double
Definition Classes
override def v1y: Double
Definition Classes
@inline
override def v2: Pt2
Definition Classes
override def v2x: Double
Definition Classes
override def v2y: Double
Definition Classes
@inline
override def v3: Pt2
Definition Classes
override def v3x: Double
Definition Classes
override def v3y: Double
Definition Classes
@inline
override def v4: Pt2
Definition Classes
override def v4x: Double
Definition Classes
override def v4y: Double
Definition Classes
@inline
override def v5: Pt2
Definition Classes
override def v5x: Double
Definition Classes
override def v5y: Double
Definition Classes
@inline
override def v6: Pt2
Definition Classes
override def v6x: Double
Definition Classes
override def y6: Double
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
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
def cenVec: Vec2
Inherited from
Polygon
def dblsApprox(that: Dbl3Elem, delta: Double): Boolean
Inherited from
Dbl3Elem
def dblsEqual(that: Dbl3Elem): Boolean
Inherited from
Dbl3Elem
@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: Any): PolygonCompound
Inherited from
Polygon
Inherited from
Show2
Inherited from
Show2
override def fill(fillColour: Colour): PolygonFill
Definition Classes
Inherited from
Polygon
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): 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: 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
HexReg
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 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 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 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 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 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
def sd2: LineSeg

Polygon side 2 from vertex 1 to vertex 2.

Polygon side 2 from vertex 1 to vertex 2.

Inherited from
Polygon3Plus
def sd3: LineSeg

Polygon side 3 from v2 to v3.

Polygon side 3 from v2 to v3.

Inherited from
Polygon3Plus
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(way: Way, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from
ShowProduct
def shows(way: Way, decimalPlaces: Int): Strings
Inherited from
Show2
@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
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
def sline(index: Int): LineSeg
Inherited from
Polygon
override def str: String
Definition Classes
Inherited from
ShowProduct
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
final override def toString: String
Definition Classes
Show -> Any
Inherited from
Show
Inherited from
BoundedElem
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
HexReg
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 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
final override def vertsNum: Int

A Hexagon has 6 vertices.

A Hexagon has 6 vertices.

Definition Classes
Inherited from
HexReg
def vertsTrans(f: Pt2 => Pt2): 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
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

Concrete fields

val cenX: Double
val cenY: Double
val width: Double

Implicits

Implicits

implicit override def showT1: ShowT[Double]
Definition Classes
implicit override def showT2: ShowT[Pt2]
Definition Classes