Companion object for the Rect trait contains factory methods for the Rect trait which delegate to the RectImp class.
- Companion:
- class
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.
- Companion:
- object
Companion object for the Rect.RectImp class
Companion object for the Rect.RectImp class
- Companion:
- class
Value members
Concrete methods
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.
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.
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.
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.
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.
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.