Companion object for the Rectangle trait. Contains Rectangle.RectangleImp the implementation class for non specialised rectangles. It also contains various factory methods that delegate to the Rectangle.RectangleImp class.
Attributes
Members list
Type members
Classlikes
A rectangle class that has position and may not be aligned to the X and Y axes.
A rectangle class that has position and may not be aligned to the X and Y axes.
Attributes
- Companion
- object
- Supertypes
-
trait 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
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RectangleImp.type
Value members
Concrete methods
apply factory method for rectangle takes the width, height, rotation from alignment with the axes and a centre point. the default value for the the centre point is the origin.
apply factory method for rectangle takes the width, height, rotation from alignment with the axes and a centre point. the default value for the the centre point is the origin.
Attributes
Creates Rectangle from 2 vectors and centre point. The 2 vectors are the half axies from the centre point to th e right and to the top.
Creates Rectangle from 2 vectors and centre point. The 2 vectors are the half axies from the centre point to th e right and to the top.