A square aligned to the X and Y axes. So these squares can be defined by their widths and their centre points. However, the position of the vertices 0, 1, 2 and 3 are not fixed. they can be changed by rotations and reflections. The clockwise, anticlockwise ordering of the vertices can be changed by reflections. The convention is for vertex 0 to be left top but this can change.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait PersistNFixedtrait Persist1Plus[Double]trait PersistNtrait TellNtrait Telltrait Persisttrait Recttrait ShapeOrdinaledtrait OrdinaledElemtrait Rectangularligntrait OrdinalEdgePointstrait Squaretrait Rectangletrait Quadrilateraltrait Polygon4Plustrait Polygon3Plustrait Polygontrait PolygonBase[Pt2]trait VertSeqSpec[Pt2]trait Equalstrait ShapeCentredtrait CentredElemtrait WithCentretrait Shapetrait BoundedElemtrait Fillabletrait Drawabletrait Aff2Elemtrait Simil2Elemtrait Axlign2Elemclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Definition Classes
1st parameter name.
2nd parameter name.
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
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
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
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.
2D Transformation using a AxlignMatrix. The return type will be narrowed in subclasses / traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation of 180 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Rotation positive or anti-clockwise 270 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Rotation positive or anti-clockwise 90 degrees, 2D geometric transformation on a GeomElem, returns a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
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
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
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
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
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
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Translate 2D geometric transformation in the X dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Translate 2D geometric transformation in the Y dimension, returning a GeomElem. The Return type will be narrowed in sub traits.
Attributes
- Definition Classes
-
Rect -> Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Axlign2Elem
Element 1 of this Tell2+ element product.
Element 2 of this Tell2+ element product.
length from v1 to v2 and v3 to v4.
Inherited methods
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Rectangle
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- OrdinalEdgePoints
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- BoundedElem
The centre of the bounding rectangle. consider also using cenDefault.
The centre of the bounding rectangle. consider also using cenDefault.
Attributes
- Inherited from:
- BoundedElem
The height of the BoundingRect of this object.
The height of the BoundingRect of this object.
Attributes
- Definition Classes
- Inherited from:
- Polygon
Currently throws, not sure if that is the correct behaviour. Creates a bounding rectangle for a collection of 2d points.
Currently throws, not sure if that is the correct behaviour. Creates a bounding rectangle for a collection of 2d points.
Attributes
- Definition Classes
- Inherited from:
- Rect
The width of the BoundingRect of this object.
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- OrdinalEdgePoints
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.
Attributes
- Definition Classes
- Inherited from:
- Rectangle
The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.
The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.
Attributes
- Definition Classes
- Inherited from:
- CentredElem
The X component of the centre.
The Y component of the centre.
Attributes
- Inherited from:
- Quadrilateral
Attributes
- Inherited from:
- Quadrilateral
Attributes
- Inherited from:
- Quadrilateral
Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.
Attributes
- Inherited from:
- Polygon
Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
Attributes
- Inherited from:
- Polygon
Creates a PolygonCompound graphic that is active with a simple 1 colour fill and has a draw graphic for the Polygon. The default values for the draw area line width of 2 and a colour of Black.
Attributes
- Inherited from:
- Polygon
ShapeCompound graphic with a FillFacet, a TextFacet and a ShapeActive child.
ShapeCompound graphic with a FillFacet, a TextFacet and a ShapeActive child.
Attributes
- Definition Classes
- Inherited from:
- Polygon
Returns compound polygon graphic with fill, active and Text members. The element parameters being entered in name order.
Returns compound polygon graphic with fill, active and Text members. The element parameters being entered in name order.
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
Returns compound polygon graphic with fill and Text members. The element parameters being entered in name order.
Returns compound polygon graphic with fill and Text members. The element parameters being entered in name order.
Attributes
- Inherited from:
- Polygon
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
Approximation for an inner rectangle given a starting centre.
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
Insert vertex.
Insert vertices before the specified insertion vertex.
Last element of the specifying sequence.
Attributes
- Inherited from:
- Rectangularlign
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
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:
- Quadrilateral
Number of parameter constituents of this class.
Number of parameter constituents of this class.
Attributes
- Definition Classes
- Inherited from:
- Persist2
The number of vertices.
The optional default value for parameter 1.
The optional default value for parameter 1.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
The optional default value for parameter 2.
The optional default value for parameter 2.
Attributes
- Definition Classes
- Inherited from:
- Tell2Plused
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
The SVG points attributes for this polygon.
Attributes
- Inherited from:
- Polygon
Determines if the parameter point lies inside this Polygon.
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in subclasses and traits.
Reflect 2D geometric transformation across a line, line segment or ray on a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Simil2Elem
- Inherited from:
- Square
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
Attributes
- Inherited from:
- Rectangularlign
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in subclasses and traits.
Rotation 2D geometric transformation on a GeomElem. The return type will be narrowed in subclasses and traits.
Attributes
- Definition Classes
-
Square -> Rectangle -> Quadrilateral -> Polygon -> Shape -> Fillable -> Drawable -> Aff2Elem -> Simil2Elem
- Inherited from:
- Square
Scaling X and Y axes independently, 2D geometric transformation on this Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses 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 Aff2Elem, returns a new Aff2Elem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- Rect
The centre or halfway point of side 0 of this polygon. Side 0 starts at the vertex v0 and ends at the vertex v1. This can be thought of as vertex 0.5.
The centre or halfway point of side 0 of this polygon. Side 0 starts at the vertex v0 and ends at the vertex v1. This can be thought of as vertex 0.5.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
The X component of the centre or halfway point of side 0 of this polygon.
The X component of the centre or halfway point of side 0 of this polygon.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
The Y component of the centre or halfway point of side 0 of this polygon.
The Y component of the centre or halfway point of side 0 of this polygon.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
The centre or halfway point of side 1 of this polygon. Side 1 starts at the v1 vertex and ends at the v2 vertex. This can be thought of as vertex 1.5
The centre or halfway point of side 1 of this polygon. Side 1 starts at the v1 vertex and ends at the v2 vertex. This can be thought of as vertex 1.5
Attributes
- Inherited from:
- Polygon3Plus
The X component of the centre or halfway point of side 1 of this polygon. The midway point between v0 and v1.
The X component of the centre or halfway point of side 1 of this polygon. The midway point between v0 and v1.
Attributes
- Inherited from:
- Polygon3Plus
The Y component of the centre or halfway point of side 1 of this polygon. the midway point between v1 and v2.
The Y component of the centre or halfway point of side 1 of this polygon. the midway point between v1 and v2.
Attributes
- Inherited from:
- Polygon3Plus
The centre or halfway point of side 2 of this polygon. Side 2 starts at the v1 vertex and ends at the v2 vertex. This can be thought of as vertex 2.5.
The centre or halfway point of side 2 of this polygon. Side 2 starts at the v1 vertex and ends at the v2 vertex. This can be thought of as vertex 2.5.
Attributes
- Inherited from:
- Polygon3Plus
The X component of the centre or half way point of side 2 of this polygon.
The X component of the centre or half way point of side 2 of this polygon.
Attributes
- Inherited from:
- Polygon3Plus
The Y component of the centre or halfway point of side 2 of this polygon.
The Y component of the centre or halfway point of side 2 of this polygon.
Attributes
- Inherited from:
- Polygon3Plus
The centre or halfway point of side 3 of this polygon.
The X component of the centre or halfway point of side 3 of this polygon.
The X component of the centre or halfway point of side 3 of this polygon.
Attributes
- Inherited from:
- Polygon4Plus
The Y component of the centre or halfway point of side 3 of this polygon.
The Y component of the centre or halfway point of side 3 of this polygon.
Attributes
- Inherited from:
- Polygon4Plus
Shear 2D geometric transformation along the X Axis on a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- Polygon
Shear 2D geometric transformation along the Y Axis on a GeomElem. The return type will be narrowed in subclasses 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 subclasses and traits. This is an affine transformation, but it is not a similar transformation.
Attributes
- Definition Classes
- Inherited from:
- Polygon
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
- Definition Classes
- Inherited from:
- Polygon
Polygon side 0 from vertex 0 to vertex 1.
Polygon side 0 from vertex 0 to vertex 1.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Polygon side 1 from vertex 0 to vertex 1.
Polygon side 2 from vertex 1 to vertex 2.
Polygon side 3 from vertex 2 to vertex 3.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Attributes
- Definition Classes
- Inherited from:
- Polygon
Show with decimal precision of 0 places.
Show with decimal precision of 1 place padding with a zero if necessary.
Show with decimal precision of 1 place padding with a zero if necessary.
Attributes
- Inherited from:
- Tell
Show with decimal precision of 2 places padding with zeros if necessary.
Show with decimal precision of 2 places padding with zeros if necessary.
Attributes
- Inherited from:
- Tell
Show with decimal precision of 3 places padding with zeros if necessary.
Show with decimal precision of 3 places padding with zeros if necessary.
Attributes
- Inherited from:
- Tell
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
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by show method on Show type class instances.
Attributes
- Inherited from:
- TellN
Text centred and sized from the bounding rectangle.
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- OrdinalEdgePoints
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Top right offset from centre.
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.
Attributes
- Inherited from:
- Polygon
This property determines if the type can be used with Multiple syntax.
This property determines if the type can be used with Multiple syntax.
MyObj * 7
. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).
Attributes
- Inherited from:
- Persist
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
- Definition Classes
- Inherited from:
- Quadrilateral
The v1 Vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 1 immediately clockwise from 12 o'clock.
The v1 Vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 1 immediately clockwise from 12 o'clock.
Attributes
- Inherited from:
- Polygon3Plus
The v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.
The v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.
Attributes
- Inherited from:
- Polygon3Plus
Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.
Vertex 4. The default convention is for the vertices to be numbered in a clockwise direction with the vertex 1 immediately clockwise from 12 o'clock.
Attributes
- Inherited from:
- Polygon4Plus
The X component of vertex 3. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
The X component of vertex 3. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
Attributes
- Definition Classes
- Inherited from:
- Rectangle
The Y component of the 4th Vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
The Y component of the 4th Vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
Attributes
- Definition Classes
- Inherited from:
- Rectangle
The last vertex. The default convention places this just anti-clockwise of 12 o'clock.
The last vertex. The default convention places this just anti-clockwise of 12 o'clock.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
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
Returns the X component of the vertex of the given number. Will throw an exception if the vertex index is out of range.
Returns the X component of the vertex of the given number. Will throw an exception if the vertex index is out of range.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Returns the Y component of the vertex of the given number. Will throw an exception if the vertex index is out of range. For maximum efficiency override the implementation in subclasses.
Returns the Y component of the vertex of the given number. Will throw an exception if the vertex index is out of range. For maximum efficiency override the implementation in subclasses.
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Attributes
- Definition Classes
- Inherited from:
- Polygon
This method should be overridden in final classes.
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.
- Definition Classes
- Inherited from:
- Polygon
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
Attributes
- Definition Classes
- Inherited from:
- Square
Attributes
- Definition Classes
- Inherited from:
- Rect
The shortest of the width and height dimensions relative to the given ratio.
The shortest of the width and height dimensions relative to the given ratio.
Attributes
- Inherited from:
- Rect
The shortest of the width and height dimensions.
The X component of the bottom left point is used. This becomes the top left point in SVG space.
The X component of the bottom left point is used. This becomes the top left point in SVG space.
Attributes
- Inherited from:
- Rectangle
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
The Y component of the bottom left point is negated to convert to SVG space and the SVG shape origin of the top left vertex.
The Y component of the bottom left point is negated to convert to SVG space and the SVG shape origin of the top left vertex.
Attributes
- Inherited from:
- Rectangle
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Inherited from:
- Rectangularlign
Attributes
- Definition Classes
- Inherited from:
- Quadrilateral
Concrete fields
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
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
The X component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.
The X component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with the 0 vertex at or immediately clockwise from 12 o'clock.
Attributes
The Y component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.
The Y component of the v1 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.
Attributes
The X component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
The X component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex 1 immediately clockwise from 12 o'clock.
Attributes
The Y component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.
The Y component of the v2 vertex. The default convention is for the vertices to be numbered in a clockwise direction with vertex immediately clockwise from 12 o'clock.
Attributes
Implicits
Implicits
Attributes
- Definition Classes
Attributes
- Definition Classes