PolygonDbl2s
A polygon whose elements are defined by 2 Doubles.
Type members
Inherited types
Value members
Inherited methods
Performs a side effecting function on each element of this sequence in order.
Performs a side effecting function on each element of this sequence in order.
- Inherited from:
- DataGen
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.
- Inherited from:
- DataGen
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.
- Inherited from:
- DataGen
The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon
The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon
- Definition Classes
- Inherited from:
- DataValueNs
Just a handy short cut to give the length of this collection as a string.
Just a handy short cut to give the length of this collection as a string.
- Inherited from:
- DataGen
Foreachs over the tail of the data sequence.
Foreachs over the tail of the data sequence.
- Inherited from:
- DataGen
foldLeft over the tail of the data sequence.
foldLeft over the tail of the data sequence.
- Inherited from:
- DataGen
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
- Inherited from:
- DataGen
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
String specifying the type of this object.
String specifying the type of this object.
- Inherited from:
- DataGen
Reverses the order of the elements in a new Array[Double] which is returned.
Reverses the order of the elements in a new Array[Double] which is returned.
- Inherited from:
- DataDblNs
Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
- Inherited from:
- DataGen
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:
- PolygonLike
Folds over the vertices.
Folds over the vertices.
- Type parameters:
- B
type of the accumulator return value of this method.
- Inherited from:
- PolygonLike
This method should be overridden in final classes.
This method should be overridden in final classes.
- Inherited from:
- PolygonLike
Index with foreach on each vertx. Applies the side effecting function on the index with the value of each vertex. 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 each vertx. Applies the side effecting function on the index with the value of each vertex. 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.
- Inherited from:
- PolygonLike
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.
- Returns:
the immutable sequence collection by applying the supplied function to each vertex.
- Inherited from:
- PolygonLike
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.
- Inherited from:
- PolygonLike