RectLen2
Attributes
- Graph
-
- Supertypes
-
trait RectangleLen2[VT]trait QuadLen2[VT]trait PolygonLen2P4[VT]trait PolygonLen2P3[VT]trait PolygonLen2[VT]trait ShapeLen2trait FillableLen2trait DrawableLen2trait PolygonDbl2[VT]trait SeqSpecDbl2[VT]trait SeqLikeImutDbl2[VT]trait SeqLikeDbl2[VT]trait PolygonDblN[VT]trait SeqSpecDblN[VT]trait SeqLikeImutDblN[VT]trait ArrayDblBackedtrait SpecialTtrait PolygonValueN[VT]trait SeqSpecValueN[VT]trait SeqLikeImutValueN[VT]trait SeqLikeBacked[VT]trait SeqLikeValueN[VT]trait PolygonBase[VT]trait VertSeqSpec[VT]trait SeqSpec[VT]trait SeqLike[VT]trait GeomLen2Elemclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Value members
Abstract methods
leftBottom => topRight diagonal
leftBottom => topRight diagonal
Attributes
leftTop => bottomRight diagonal
leftTop => bottomRight diagonal
Attributes
Attributes
- Definition Classes
Uniform 2 Length dimension geometric scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. The Return type will be narrowed in sub traits / classes.
Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.
Translate 2 Length dimension geometric transformation GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload taking the X and Y Deltas as separate parameters, slateX and slateY methods are also available.
Attributes
- Definition Classes
Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.
Translate 2 Length dimension geometric transformation, taking the xDelta and yDelta as parameters on this GeomLen2Elem returning a GeomLen2Elem. The Return type will be narrowed in sub traits. There is a name overload method taking a Pt2 or Vec2 as a parameter, slateX and slateY methods are also available.
Attributes
- Definition Classes
Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.
Translate 2 Length dimension geometric transformation in the X dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.
Translate 2 Length dimension geometric transformation in the Y dimension returning a GeomLen2Elem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
Inherited methods
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
Maps the 1st Doubles of each element to a double with one functions and then the second Doubles with a second Double.
Maps the 1st Doubles of each element to a double with one functions and then the second Doubles with a second Double.
Attributes
- Inherited from:
- SeqLikeImutDbl2
Attributes
- Inherited from:
- SeqLikeImutDbl2
Attributes
- Inherited from:
- SeqLikeImutDbl2
Creates the Array[Double] need to implement the sides method.
Creates the Array[Double] need to implement the sides method.
Attributes
- Definition Classes
- Inherited from:
- PolygonDbl2
Attributes
- Inherited from:
- SeqLikeImutDbl2
Produces a new Array[Double] of the same size, with the functions acting on the first and second Double of each element.
Produces a new Array[Double] of the same size, with the functions acting on the first and second Double of each element.
Attributes
- Inherited from:
- SeqLikeImutDbl2
This maps from the final type to the final type by just using functions on the underlying Doubles.
This maps from the final type to the final type by just using functions on the underlying Doubles.
Attributes
- Inherited from:
- SeqLikeImutDbl2
Draws the object. The line width is defined in pixels.
Draws the object. The line width is defined in pixels.
Attributes
- Definition Classes
- Inherited from:
- PolygonLen2
Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.
Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.
Attributes
- Definition Classes
- Inherited from:
- SeqLikeImutDbl2
Attributes
- Inherited from:
- SeqLikeImutDbl2
Attributes
- Inherited from:
- SeqLikeImutDbl2
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:
- SeqLikeDbl2
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
Attributes
- Inherited from:
- SeqSpecValueN
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
Graphically fills this object.
Graphically fills and draws this object.
FlatMaps the vertices of this PolygonBase to a new to PolygonLike class of type BB.
FlatMaps the vertices of this PolygonBase to a new to PolygonLike class of type BB.
Attributes
- Inherited from:
- PolygonBase
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.
Maps 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.
Attributes
- Inherited from:
- PolygonBase
Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Attributes
- Inherited from:
- SeqLikeBacked
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 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.
Attributes
- Definition Classes
- Inherited from:
- SeqLikeImutDbl2
The number of vertices.
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
- Inherited from:
- PolygonBase
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
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
Sets / mutates an element in the Arr at the given index. 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 at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Attributes
- Definition Classes
- Inherited from:
- SeqLikeImutDbl2
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:
- SeqLikeBacked
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
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:
- SeqLikeImutDblN
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
- Inherited from:
- PolygonBase
This method should be overridden in final classes.
Performs the side effecting function on the value of each vertex.
Performs the side effecting function on the value of each vertex.
Attributes
- Definition Classes
- Inherited from:
- PolygonValueN
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.
- Inherited from:
- PolygonBase
Checks this polygon has at least 3 vertices.
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 from:
- PolygonBase
Inherited and Abstract methods
Attributes
- Inherited from:
- ArrayDblBacked
The X component of the centre of the quadrilateral, defined as where the diagonals cross.
The X component of the centre of the quadrilateral, defined as where the diagonals cross.
Attributes
- Inherited from:
- QuadLen2
The Y component of the centre of the quadrilateral, defined as where the diagonals cross.
The Y component of the centre of the quadrilateral, defined as where the diagonals cross.
Attributes
- Inherited from:
- QuadLen2
The diagonal from vertex 2 to vertex 0.
The diagonal from vertex 3 to vertex 1.
The triangle defined vertex 0, the centre and vertex 3.
The triangle defined vertex 1, the centre and vertex 0.
The triangle defined vertex 2, the centre and vertex 2.
The triangle defined vertex 3, the centre and vertex 2.
Attributes
- Inherited from:
- QuadLen2
Attributes
- Inherited from:
- SeqLikeImutDblN
Attributes
- Inherited from:
- PolygonLen2
Attributes
- Inherited from:
- PolygonLen2
Attributes
- Inherited from:
- PolygonLen2
Attributes
- Inherited from:
- PolygonLen2
Attributes
- Inherited from:
- PolygonLen2
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
- Inherited from:
- PolygonBase
Attributes
- Inherited from:
- PolygonBase
Attributes
- Inherited from:
- PolygonBase
String specifying the type of this object.
Vertex v0, will throw on a 0 vertices polygon. By convention the default position for this vertex is at the top or 12 o'clock position of the polygon or the vertex immediately anti-clockwise if there is no vertex in this position.
Vertex v0, will throw on a 0 vertices polygon. By convention the default position for this vertex is at the top or 12 o'clock position of the polygon or the vertex immediately anti-clockwise if there is no vertex in this position.
Attributes
- Inherited from:
- PolygonLen2
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.
Attributes
- Inherited from:
- PolygonLen2
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.
Attributes
- Inherited from:
- PolygonLen2
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P3
Attributes
- Inherited from:
- PolygonLen2P4
Attributes
- Inherited from:
- PolygonLen2P4
Attributes
- Inherited from:
- PolygonLen2P4
Attributes
- Inherited from:
- PolygonBase