Wheel

io.github.srs.model.entity.dynamicentity.actuator.Wheel
final case class Wheel(speed: Double, shape: Circle)

Represents a wheel with linear speed and circular shape.

Value parameters

shape

the physical shape of the wheel, assumed to be a circle.

speed

the linear speed of the wheel (in meters per second).

Attributes

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

Members list

Value members

Concrete methods

def updatedSpeed(to: Double): Wheel

Returns a new instance of this wheel with an updated linear speed.

Returns a new instance of this wheel with an updated linear speed.

Value parameters

to

the new linear speed (in meters per second).

Attributes

Returns

a new Wheel instance with the updated speed.

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product