PolygonBase
A Polygon like object, where the points dimensions could be specified in 2D or 3D Metres, latitude and longitude etc as well as the regular scalar values of the standard Polygon.
Type parameters
- VT
-
The type of the vertices in this polygon like trait. For a standard Polygon this will be a Pt2, but for example for a PolygonM3 it would be a PtM3.
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
trait Polygontrait Polygon3Plustrait Polygon4Plustrait Polygon5Plustrait Polygon6Plusclass DoDecligntrait HexRegclass HexRegImptrait Hexlignclass HexParrXclass HexParrYtrait Quadrilateraltrait QuadrilateralFieldsclass QuadrilateralGenclass Trapeziumtrait Rectangletrait PhiRectangletrait PhiRectclass PhiRectHighclass PhiRectWideclass PhiRectangleGentrait Rectobject NoBoundsclass RectGenclass Sqlignclass RectangleGentrait Squareclass SquareGentrait Triangleclass TriangleGentrait TriangleIsosclass TriangleEquiclass TriangleIsosGenclass PolygonGentrait PolygonYMirrortrait PolygonValueN[VT]trait PolygonDblN[VT]trait PolygonDbl2[VT]class PolygonLLtrait PolygonLen2[VT]class PolygonFm2Genclass PolygonKm2trait PolygonLen2P3[VT]trait PolygonLen2P4[VT]trait PolygonM2P4trait QuadM2trait RectangleM2trait RectM2class SqlignM2trait QuadLen2[VT]trait RectangleLen2[VT]trait RectLen2[VT]trait SqlignLen2[VT]trait SquareLen2[VT]trait PolygonM2P3class TriangleM2trait TriangleLen2[VT]trait PolygonM2class PolygonM2Genclass PolygonPm2trait PolygonDbl3[VT]trait PolygonLength3[VT]class PolygonKm3class PolygonM3trait PolygonIntN[VT]trait PolygonInt2[VT]class PolygonHCclass PolygonSqCtrait PolygonInt3[VT]class PolygonHvOffsetShow all
Members list
Type members
Types
Gives the final type of this class.
Gives the final type of this class.
Attributes
Value members
Abstract methods
Returns a side of the appropriate type for the PolygonBase from the given index. The index cycles.
Returns a side of the appropriate type for the PolygonBase from the given index. The index cycles.
Attributes
Performs the side effecting function on the value of each vertex.
Performs the side effecting function on the value of each vertex.
Attributes
Concrete methods
FlatMaps the vertices of this PolygonBase to a new to PolygonLike class of type BB.
Maps the vertices of this PolygonBase to a new to PolygonLike class of type BB.
Optionally maps the vertices of this PolygonBase to vertices of a new to PolygonLike class of type BB. If the new PolygonBase has at least 3 vertices returns Some else returns None.
Optionally maps the vertices of this PolygonBase to vertices of a new to PolygonLike class of type BB. If the new PolygonBase has at least 3 vertices returns Some else returns None.
Attributes
Returns the vertex of the given index. Cycles around if the index is out of range, vert 3 returns vert 0 on a triangle.
Returns the vertex of the given index. Cycles around if the index is out of range, vert 3 returns vert 0 on a triangle.
Attributes
This method should be overridden in final classes.
This method should be overridden in final classes.
Attributes
Maps the vertices of this polygon to an immutable Array like sequence of type B.
Maps the vertices of this polygon to an immutable Array like sequence of type B.
Type parameters
- ArrB
-
The type of the immutable Array like sequence of B.
- B
-
The element type of the returned sequence.
Attributes
- Returns
-
the immutable sequence collection by applying the supplied function to each vertex.
Checks this polygon has at least 3 vertices.
Checks this polygon has at least 3 vertices.
Attributes
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 PolygonBase. 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 PolygonBase. 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.
Attributes
Inherited methods
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
foldLeft over the specifying sequence.
Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Index with foreach on the data elements. Performs a side effecting function on the index and each element of the data sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- SeqSpec
Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Index with foreach on the specifying sequence elements. Performs a side effecting function on the index and each element of the specifying sequence. It takes a function as a parameter. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
- Inherited from:
- SeqSpec
Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.
Foreachs over the inner of the specifying sequence, excludes the first and last element. Performs a side effecting function on each element of the tail of the specifying sequence in order.
Attributes
- Inherited from:
- SeqSpec
Last element of the specifying sequence.
Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.
Performs a side effecting function on each element of the specifying-sequence in reverse order. The function may return Unit. If it does return a non-Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users.
Attributes
- Inherited from:
- SeqSpec
FoldLeft over the tail of the specifying sequence.
Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.
Foreachs over the tail of the specifying sequence. Performs a side effecting function on each element of the tail of the specifying sequence in order.
Attributes
- Inherited from:
- SeqSpec
Inherited and Abstract methods
The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.
The number of vertices.