TriangleIsos
An isosceles triangle. This trait is implemented by the equilateral triangle, TriangleEqui and the general case TriangleIsos.
Attributes
- Graph
- Supertypes
- trait Triangletrait Polygon3Plustrait Polygontrait PolygonLikeDbl2[Pt2]trait PolygonLikeDblN[Pt2]trait PolygonValueN[Pt2]trait PolygonLike[Pt2]trait Pt2SeqSpectrait Dbl2SeqSpec[Pt2]trait DblNSeqSpec[Pt2]trait ValueNSeqSpec[Pt2]trait Pt2SeqLiketrait Dbl2SeqLike[Pt2]trait DblNSeqLike[Pt2]trait ArrayDblBackedtrait SpecialTtrait ValueNSeqLike[Pt2]trait PointDbl2SeqLike[Pt2]trait PointDblNSeqLike[Pt2]trait PointSeqLike[Pt2]trait Equalstrait Shapetrait BoundedElemtrait Fillabletrait Drawabletrait GeomElemclass Objecttrait Matchableclass Any
- Known subtypes
- class TriangleEquiclass TriangleIsosGen
Members list
Type members
Types
Gives the final type of this class.
Gives the final type of this class.
Attributes
Value members
Concrete methods
The height of this isosceles triangle from the bisection of the thrid side to the vertex where the 2 euql length sides meet.
The height of this isosceles triangle from the bisection of the thrid side to the vertex where the 2 euql length sides meet.
Attributes
Inherited methods
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
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:
- DblNSeqSpec
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
Attributes
- Inherited from:
- BoundedElem
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:
- Polygon
The width of the BoundingRect of this object.
Attributes
- Inherited from:
- BoundedElem
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.
Attributes
- Inherited from:
- BoundedElem
The centre point of this Polygon. The default centre for Polygons is the centre of the bounding rectangle.
The centre point of this Polygon. The default centre for Polygons is the centre of the bounding rectangle.
Attributes
- Inherited from:
- Polygon
Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.
Utility method to append element on to an ArrayBuffer[Double]. End users should rarely need to use this method.
Attributes
- Definition Classes
- Inherited from:
- Dbl2SeqLike
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Dbl2SeqSpec
Attributes
- Inherited from:
- Dbl2SeqSpec
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:
- Dbl2SeqLike
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
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.
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
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
FlatMaps the vertices of this PolygonLike to a new to PolygonLike class of type BB.
FlatMaps the vertices of this PolygonLike to a new to PolygonLike class of type BB.
Attributes
- Inherited from:
- PolygonLike
Attributes
- Inherited from:
- DblNSeqLike
Insert vertex.
Insert vertices before the specified insertion vertex.
Maps the vertices of this PolygonLike to a new to PolygonLike class of type BB.
Maps the vertices of this PolygonLike to a new to PolygonLike class of type BB.
Attributes
- Inherited from:
- PolygonLike
Mirror, reflection transformation across the X axis on a triangle, returns a triangle. The rturn type to be narrowed sub classes.
Mirror, reflection transformation across the Y axis on a triangle returns a triangle.The return type is narrowed in sub classes.
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- 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 polygon, returns a Polygon. The Return type will be narrowed in sub traits / classes.
Rotation 2D geometric transformation on a Polygon, taking the rotation as a scalar measured in radians, returns a Polygon. The Return type will be narrowed in some but not all sub traits / classes.
Rotation of 180 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.
Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.
Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.
Uniform scaling 2D geometric 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.
Uniform scaling 2D geometric 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.
Attributes
- Definition Classes
- Inherited from:
- Triangle
XY scaling 2D geometric transformation on a Polygon returns a Polygon. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in some, but not all descendant Polygon types.
XY scaling 2D geometric transformation on a Polygon returns a Polygon. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in some, but not all descendant Polygon types.
Attributes
- Definition Classes
- Inherited from:
- Triangle
The centre or half way 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 half way 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
- Inherited from:
- Polygon
The X component of the centre or half way point of side 0 of this polygon.
The X component of the centre or half way point of side 0 of this polygon.
Attributes
- Inherited from:
- Polygon
The Y component of the centre or half way point of side 0 of this polygon.
The Y component of the centre or half way point of side 0 of this polygon.
Attributes
- Inherited from:
- Polygon
The centre or half way 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 half way 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 half way point of side 1 of this polygon. The midway point between v0 and v1.
The X component of the centre or half way 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 half way point of side 1 of this polygon. the midway point between v1 and v2.
The Y component of the centre or half way point of side 1 of this polygon. the midway point between v1 and v2.
Attributes
- Inherited from:
- Polygon3Plus
The centre or half way 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 half way 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 half way point of side 2 of this polygon.
The Y component of the centre or half way point of side 2 of this polygon.
Attributes
- Inherited from:
- Polygon3Plus
Shear 2D geometric transformation along the X Axis on a Polygon, returns a Polygon. The return type will be narrowed in some but not all sub classes and traits.
Shear 2D geometric transformation along the Y Axis on a Polygon, returns a Polygon. The return type will be narrowed in sub classes and traits.
Polygon side 0 from vertex 0 to vertex 1.
Polygon side 1 from vertex 0 to vertex 1.
Polygon side 2 from vertex 1 to vertex 2.
Translate 2D geometric transformation on a Triangle returns a Triangle. The return type is narrowed in sub classes.
Translate 2D geometric transformation on a Triangle returns a Triangle. The return type is narrowed in sub classes.
Method for creating new specifying sequence elements from 2 Doubles In the case of Dbl2Arr 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 Dbl2Arr 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:
- Dbl2SeqSpec
specifying -sequence fold.
Attributes
- Inherited from:
- ValueNSeqSpec
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:
- Dbl2SeqSpec
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:
- Dbl2SeqSpec
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:
- ValueNSeqSpec
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:
- DblNSeqSpec
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
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- BoundedElem
Attributes
- Inherited from:
- ArrayDblBacked
Attributes
- Inherited from:
- Dbl2SeqSpec
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:
- DblNSeqLike
Attributes
- Inherited from:
- Polygon
Attributes
- Inherited from:
- Polygon
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:
- DblNSeqSpec
Attributes
- Inherited from:
- DblNSeqLike
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:
- Dbl2SeqLike
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
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
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:
- Polygon
The X component of vertex v0, will throw on a 0 vertices polygon.
The Y component of vertex v1, will throw on a 0 vertices polygon.
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 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
- Inherited from:
- Polygon3Plus
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
- 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
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
- Inherited from:
- Polygon3Plus
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
- Inherited from:
- Polygon3Plus
The last vertex. The default convention places this just anti clockwise of 12 oclock.
The last vertex. The default convention places this just anti clockwise of 12 oclock.
Attributes
- Inherited from:
- Polygon
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:
- PolygonLike
Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex. For maximum efficiency override the implementation in sub classes.
Foreach vertex excluding vertex 1, perform the side effecting function on the Tuple2 of the x and y values of the vertex. For maximum efficiency override the implementation in sub classes.
Attributes
- Inherited from:
- Polygon
flatMap to an immutable Arr.
Folds over the vertices.
Folds over the vertices.
Attributes
- B
type of the accumulator return value of this method.
- Definition Classes
- Inherited from:
- Polygon
This method should be overridden in final classes.
flatMap with index to an immutable Arr.
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.
Attributes
- Definition Classes
- Inherited from:
- Polygon
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.
Attributes
- 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.
- Definition Classes
- Inherited from:
- Polygon
Checks this polygon has at least 3 vertices.
The number of vertices and also the number of sides in this Polygon.
The number of vertices and also the number of sides in this Polygon.
Attributes
- Definition Classes
- Inherited from:
- Triangle
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.
Attributes
- Inherited from:
- PolygonLike
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
- Inherited from:
- Polygon
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 sub classes.
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 sub classes.
Attributes
- Inherited from:
- Polygon