HexReg

object HexReg

Companion object for HegReg trait, contains HexRegImp implementation case for the general case of regular Hexagons.

Companion:
class
class Object
trait Matchable
class Any
HexReg.type

Type members

Classlikes

final case class HexRegImp(sd3CenX: Double, sd3CenY: Double, sd0CenX: Double, sd0CenY: Double) extends HexReg with Show2[Pt2, Pt2]

Implementation class for the HexReg trait.

Implementation class for the HexReg trait.

Value members

Concrete methods

def apply(dInner: Double, rotation: AngleVec, cen: Pt2): HexReg

Factory method for regular hexagon HexReg. Takes the inner diameter the rotation and then centre point. A rotation of 0 degrees places side 4 at the bottom parallel to the X axis and side1 at the top.

Factory method for regular hexagon HexReg. Takes the inner diameter the rotation and then centre point. A rotation of 0 degrees places side 4 at the bottom parallel to the X axis and side1 at the top.

def apply(dInner: Double, rotation: AngleVec, xCen: Double, yCen: Double): HexReg

Factory method for regular hexagon HexReg. Takes the inner diameter the rotation and then centre point. A rotation of 0 degrees places side 4 at the bottom parallel to the X axis and side1 at the top.

Factory method for regular hexagon HexReg. Takes the inner diameter the rotation and then centre point. A rotation of 0 degrees places side 4 at the bottom parallel to the X axis and side1 at the top.

def sd4Sd1(sd4Cen: Pt2, sd1Cen: Pt2): HexReg

Factory method for HexReg, taking 2 points as parameters, the centre of side 4, followed by the centre of side 1. In the default alignment for a regular hexagon both Y values will be 0.

Factory method for HexReg, taking 2 points as parameters, the centre of side 4, followed by the centre of side 1. In the default alignment for a regular hexagon both Y values will be 0.

Implicits

Implicits

implicit val scaleImplicit: Scale[HexReg]
implicit val showImplicit: ShowT[HexReg]
implicit val slateImplicit: Slate[HexReg]