Companion object for the Rect trait contains factory methods for the Rect trait which delegate to the RectImp class.
Attributes
Members list
Type members
Classlikes
Implementation class for Rect, a rectangle aligned to the X and Y axes.
Implementation class for Rect, a rectangle aligned to the X and Y axes.
Attributes
- Companion
- object
- Supertypes
-
trait Recttrait ShapeOrdinaledtrait OrdinaledElemtrait Rectangularligntrait OrdinalEdgePointstrait Rectangletrait Quadrilateraltrait Polygon4Plustrait Polygon3Plustrait Polygontrait PolygonLikeDbl2[Pt2]trait PolygonLikeDblN[Pt2]trait PolygonValueN[Pt2]trait PolygonLike[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 Equalstrait ShapeCentredtrait CentredElemtrait WithCentretrait Shapetrait BoundedElemtrait Fillabletrait Drawabletrait GeomElemclass Objecttrait Matchableclass AnyShow all
Companion object for the Rect.RectImp class
Companion object for the Rect.RectImp class
Attributes
Value members
Concrete methods
Factory apply method for a rectangle aligned with the X and Y axes. Default height is 1 and default cebtre point is at x = 0, y = 0. There is a name overload that takes the X and Y centre coordinates as Doubles.
Factory apply method for a rectangle aligned with the X and Y axes. Default height is 1 and default cebtre point is at x = 0, y = 0. There is a name overload that takes the X and Y centre coordinates as Doubles.
Attributes
Factory apply method for a rectangle aligned with the X and Y axes. There is a name overload that has a default height of 1 and takes a Pt2 centre point paremeter wth a default of x = 0, y = 0.
Factory apply method for a rectangle aligned with the X and Y axes. There is a name overload that has a default height of 1 and takes a Pt2 centre point paremeter wth a default of x = 0, y = 0.
Attributes
Factory method for Rect from width, height and the bottomCentre position parameters. The default position for the bottomCentre parameter places the bottom centre of the Rect at the origin.
Factory method for Rect from width, height and the bottomCentre position parameters. The default position for the bottomCentre parameter places the bottom centre of the Rect at the origin.
Attributes
Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.
Factory method for Rect from width, height and the bottomLeft position parameters. The default position for the bottomLeft parameter places the bottom left vertex of the Rect at the origin.
Attributes
Factory method for Rect from width, height and the topLeft position parameters. The default position for the bottomRight parameter places the bottom right vertex of the Rect at the origin.
Factory method for Rect from width, height and the topLeft position parameters. The default position for the bottomRight parameter places the bottom right vertex of the Rect at the origin.
Attributes
Factory method to create a Rect from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.
Factory method to create a Rect from the centre point and the v0 point. The v0 point or vertex is y convention the top left vertex of the rectangle, but any of the 4 corner vertices will give the correct constructor values.
Attributes
Factory method for Rect from width, height and the topLeft position parameters. The default position for the topLeft parameter places the top left vertex of the Rect at the origin.
Factory method for Rect from width, height and the topLeft position parameters. The default position for the topLeft parameter places the top left vertex of the Rect at the origin.
Attributes
Factory method for Rect from width, height and the topRight position parameters. The default position for the topLeft parameter places the top right vertex of the Rect at the origin.
Factory method for Rect from width, height and the topRight position parameters. The default position for the topLeft parameter places the top right vertex of the Rect at the origin.