Polygon6Plus
A Polygon with at least 6 vertices.
Value members
Abstract methods
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.
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.
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 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
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
- Inherited from:
- BoundedElem
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
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
Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex.
Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex.
- 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
Reflect 2D geometric transformation across a line, line segment or ray on a polygon, returns a Polygon. The Return type will be narrowed in 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.
Uniform scaling against both X and Y axes transformation on a polygon returning a Polygon. 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 polygon returning a Polygon. 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:
- 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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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.
- Definition Classes
- Inherited from:
- Polygon
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.
- Inherited from:
- Polygon
Vertex v0, will throw on a 0 vertices polygon.
Vertex v0, will throw on a 0 vertices polygon.
- Inherited from:
- Polygon
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
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
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
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
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
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
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
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
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
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
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
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
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
The vertices of this Polygon in an Array of Doubles.
The vertices of this Polygon in an Array of Doubles.
- Inherited from:
- Polygon
The X component of the vertices of this Polygon in an Array of Doubles.
The X component of the vertices of this Polygon in an Array of Doubles.
- Inherited from:
- Polygon
The Y component of the vertices of this Polygon in an Array of Doubles.
The Y component of the vertices of this Polygon in an Array of Doubles.
- 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
The number of vertices and also the number of sides in this Polygon.
The number of vertices and also the number of sides in this Polygon.
- 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
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.
- Inherited from:
- Polygon