Companion object for the Rectangle trait. Contains Rectangle.RectangleGen the implementation class for non-specialised rectangles. It also contains various factory methods that delegate to the Rectangle.RectangleGen 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 PolygonBase[Pt2]trait VertSeqSpec[Pt2]trait Equalstrait ShapeCentredtrait CentredElemtrait WithCentretrait Shapetrait BoundedElemtrait Fillabletrait Drawabletrait Aff2Elemtrait Simil2Elemtrait Axlign2Elemclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RectangleGen.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 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 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.