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
Value members
Concrete methods
Prolign 2d transformations, similar transformations that retain alignment with the axes on this HexTlign returns a HexYlign.
Rotate 270 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 90 degrees clockwise.
Rotate 90 degrees positively or anti clockwise 2D geometric transformation on a HexYlign, returns a HexYlign. Equivalent to rotate 270 degrees clockwise.
Inherited methods
The centre of the bounding rectangle. consider also using cenDefault.
The centre of the bounding rectangle. consider also using cenDefault.
- 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
The width of the BoundingRect of this object.
The width of the BoundingRect of this object.
- Inherited from:
- BoundedElem
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
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
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
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
- Inherited from:
- Polygon
- Inherited from:
- Polygon
- Inherited from:
- Polygon
- Inherited from:
- Polygon
- Inherited from:
- Polygon
Insert vertices before the specified insertion vertex.
Insert vertices before the specified insertion vertex.
- Inherited from:
- Polygon
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
- Inherited from:
- Polygon
Determines if the parameter point lies inside this Polygon.
Determines if the parameter point lies inside this Polygon.
- Inherited from:
- Polygon
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
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
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.
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.
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 Y Axis on a Polygon, returns a Polygon. The return type will be narrowed in sub classes and traits.
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowDecT type class instances.
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
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
Show with decimal precision of 0 places.
Show with decimal precision of 0 places.
- 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.
- 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.
- 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.
- Inherited from:
- ShowDec
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
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
This method should be overridden in final classes.
This method should be overridden in final classes.
- Inherited from:
- PolygonLike
flatMap with index to an immutable Arr.
flatMap with index to an immutable Arr.
- Inherited from:
- Polygon
- Definition Classes
- Inherited from:
- Polygon
Checks this polygon has at least 3 vertices.
Checks this polygon has at least 3 vertices.
- Inherited from:
- PolygonLike
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