ShapeType

io.github.srs.model.ShapeType
enum ShapeType

ShapeType represents different geometric shapes used in the simulation.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class Circle(radius: Double)

A circular shape.

A circular shape.

Value parameters

radius

the radius of the circle, must be a positive value.

Attributes

final case class Rectangle(width: Double, height: Double)

A rectangular shape.

A rectangular shape.

Value parameters

height

the height of the rectangle, must be a positive value.

width

the width of the rectangle, must be a positive value.

Attributes