ShapeConstructor
doodle.algebra.ShapeConstructor
trait ShapeConstructor
Constructors for Shape algebra
Attributes
- Source
- Shape.scala
- Graph
-
- Supertypes
- Self type
-
Members list
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)
Attributes
- Source
- Shape.scala
The empty shape, which is no shape at all.
A rectangle with the given width and height.
A square with the given side length.
An isoceles triangle with the given width and height.
In this article