A quasi Polygon specified in 3D metre points. This is not a proper polygon as the points do not have to lie within the same plane. I'm not sure how useful this class will prove. It has been created for the intermediary step of converting from LatLongss to PolygonMs on world maps.
- Companion:
- object
Type members
Value members
Concrete methods
- Definition Classes
This method does nothing if the vertNum < 2. Foreach PtM3 vertex applies the side effecting function to the previous PtM3 vertex with each vertex. The previous vertex to the first vertex is the last vertex of this PolygonM3. 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 PtM3 vertex applies the side effecting function to the previous PtM3 vertex with each vertex. The previous vertex to the first vertex is the last vertex of this PolygonM3. 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 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
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
This method should be overridden in final classes.
This method should be overridden in final classes.
- Inherited from:
- PolygonLike
Checks this polygon has at least 3 vertices.
Checks this polygon has at least 3 vertices.
- Inherited from:
- PolygonLike