ShapeConstructor
trait ShapeConstructor
Constructors for Shape algebra
- Source:
- Shape.scala
Value members
Concrete methods
A circle with the given diameter. We use diamter rather than radius so circle(100) has the same size as square(100)
A circle with the given diameter. We use diamter rather than radius so circle(100) has the same size as square(100)
- Source:
- Shape.scala
The empty shape, which is no shape at all.
The empty shape, which is no shape at all.
- Source:
- Shape.scala
A rectangle with the given width and height.
A rectangle with the given width and height.
- Source:
- Shape.scala
An isoceles triangle with the given width and height.
An isoceles triangle with the given width and height.
- Source:
- Shape.scala