Array[Double] based collection class for a LinePath. Conversion to and from the Vec2s class and Polygon class should not entail a runtime cost.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait LinePathDbl2[Pt2]trait LinePathDblN[Pt2]trait LinePathLike[Pt2]trait Pt2SeqSpectrait SeqSpecDbl2[Pt2]trait SeqSpecDblN[Pt2]trait SeqSpecValueN[Pt2]trait Pt2SeqLiketrait SeqLikeDbl2[Pt2]trait SeqLikeDblN[Pt2]trait ArrayDblBackedtrait SpecialTtrait SeqLikeValueN[Pt2]trait PointDbl2SeqLike[Pt2]trait PointDblNSeqLike[Pt2]trait PointSeqLike[Pt2]trait AffinePreservetrait SimilarPreservetrait ProlignPreservetrait GeomElemclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Value members
Concrete methods
Constructs a PolygonLike for this vertex type from an Array[Double].
A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.
A method to perform all the ProlignPreserve transformations with a function from PT2 => PT2.
Attributes
String specifying the type of this object.
Closes the line Path into a Polygon, by mirroring across the yAxis. This is useful for describing symmetrical across the y Axis polygons, with the minimum number of points. The implementation is efficient, but is logical equivalent of myVec2s ++ myVec2s.reverse.negX.
Closes the line Path into a Polygon, by mirroring across the yAxis. This is useful for describing symmetrical across the y Axis polygons, with the minimum number of points. The implementation is efficient, but is logical equivalent of myVec2s ++ myVec2s.reverse.negX.
Attributes
Inherited methods
Prepends a single vertex of type VT. Returns a new extended LinePathLike.
Prepends a single vertex of type VT. Returns a new extended LinePathLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends a single vertex of type VT. Returns a new extended LinePathLike.
Appends a single vertex of type VT. Returns a new extended LinePathLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends another LinePathLike of this type. Returns a new extended LinePathLike.
Appends another LinePathLike of this type. Returns a new extended LinePathLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends the init of another LinePathLike of this type. Returns a new extended LinePathLike. The ++ indicates to append a sequence. the trailing - indicates to drop the last point.
Appends the init of another LinePathLike of this type. Returns a new extended LinePathLike. The ++ indicates to append a sequence. the trailing - indicates to drop the last point.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends the reverse vertex order of another LinePathLike of this type. Returns a new extended LinePathLike.
Appends the reverse vertex order of another LinePathLike of this type. Returns a new extended LinePathLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.
Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.
Attributes
- Inherited from:
- SeqSpecDblN
Attributes
- Inherited from:
- LinePathDblN
The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.
The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.
Attributes
- Inherited from:
- SeqLikeDblN
Attributes
- Inherited from:
- SeqSpecDbl2
Attributes
- Inherited from:
- SeqSpecDbl2
The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.
The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.
Attributes
- Definition Classes
- Inherited from:
- SeqLikeDbl2
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
Attributes
- Definition Classes
- Inherited from:
- Pt2SeqLike
This line path with the last vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.
This line path with the last vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
This line path with the first and last vertex's removed. This can be useful for borders where the end points may show up in multiple line paths* and therefore sometimes need to be excluded when appending.
This line path with the first and last vertex's removed. This can be useful for borders where the end points may show up in multiple line paths* and therefore sometimes need to be excluded when appending.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
maps to a LinePathLike. This map operates on a single LinePathLike its not to be confused with a map on Arr of LinePathLikes.
maps to a LinePathLike. This map operates on a single LinePathLike its not to be confused with a map on Arr of LinePathLikes.
Attributes
- Inherited from:
- LinePathLike
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Mirror, reflection 2D geometric transformation across the X axis by negating y. The return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Attributes
- Inherited from:
- LinePathLike
2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.
2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in sub classes and traits.
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in sub classes and traits.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Reverses the order of the elements of the specifying sequence.
Reverses the order of the elements of the specifying sequence.
Attributes
- Definition Classes
- Inherited from:
- SeqSpecDblN
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in sub classes and traits.
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in sub classes and traits.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in sub classes and traits.
Attributes
- Definition Classes
- Inherited from:
- SimilarPreserve
Uniform 2D geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling. The Return type will be narrowed in sub traits / classes.
Uniform 2D geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling. The Return type will be narrowed in sub traits / classes.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Scaling X and Y axes independently, 2D geometric transformation on this GeomElem, returns a new GeomElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- AffinePreserve
Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Attributes
- Definition Classes
- Inherited from:
- SeqLikeDbl2
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.
Attributes
- Inherited from:
- SeqLike
Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- AffinePreserve
Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in sub classes and traits. This is an affine transformation but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- AffinePreserve
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Translate 2D geometric transformation, taking the xOffset and yOffset as parameters on this GeomElem returning a GeomElem. The Return type will be narrowed in sub traits. End users will often want to use the slate method taking a Pt2 or Vec2 as a parameter, the slateX or the slateY methods. These methods will be offered as extension methods using this method for their implementations.
Attributes
- Definition Classes
- Inherited from:
- ProlignPreserve
Method for creating new specifying sequence elements from 2 Doubles In the case of ArrDbl2 this will be thee type of the elements of the sequence.
Method for creating new specifying sequence elements from 2 Doubles In the case of ArrDbl2 this will be thee type of the elements of the sequence.
Attributes
- Definition Classes
- Inherited from:
- Pt2SeqSpec
Checks if 2 values of the specifying sequence are equal.
Checks if 2 values of the specifying sequence are equal.
Attributes
- Definition Classes
- Inherited from:
- SeqSpecDbl2
specifying -sequence fold.
Attributes
- Inherited from:
- SeqSpecValueN
Performs a side effecting function on each element of the specifying sequence in order.
Performs a side effecting function on each element of the specifying sequence in order.
Attributes
- Inherited from:
- SeqSpec
Attributes
- Inherited from:
- SeqSpecDbl2
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 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 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
Accesses the specifying sequence element by a 0 based index.
Accesses the specifying sequence element by a 0 based index.
Attributes
- Definition Classes
- Inherited from:
- SeqSpecDbl2
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.
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
Attributes
- Definition Classes
- Inherited from:
- SeqSpecValueN
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
This line path with the first vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.
This line path with the first vertex removed. This can be useful for borders where the end points may show up in multiple line paths and therefore sometimes need to be excluded when appending.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Closes this LinePathLike into a PolygonLike by adding a LineSegLike from the last vertex to the first.
Closes this LinePathLike into a PolygonLike by adding a LineSegLike from the last vertex to the first.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Attributes
- Inherited from:
- SeqSpecDbl2
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.
Attributes
- Inherited from:
- SeqSpecDblN
Attributes
- Inherited from:
- SeqLikeDblN
Appends the init of another LinePathLike of this type. Returns a PolygonLike.
Appends the init of another LinePathLike of this type. Returns a PolygonLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends the reverse vertex order of another LinePathLike of this type. Returns a new extended closed PolygonLike.
Appends the reverse vertex order of another LinePathLike of this type. Returns a new extended closed PolygonLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends another LinePathLike of this type. Returns a PolygonLike. ++ indicates append a sequence. The enclosing lines indicate to close the polygon.
Appends another LinePathLike of this type. Returns a PolygonLike. ++ indicates append a sequence. The enclosing lines indicate to close the polygon.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN
Appends a single vertex of type A. Returns a PolygonLike.
Appends a single vertex of type A. Returns a PolygonLike.
Attributes
- Definition Classes
- Inherited from:
- LinePathDblN