Vehicle

scalation.scala3d.Vehicle
See theVehicle companion object
case class Vehicle(clock: Clock, color: Color, size: Int, location: Point3D, id: Int, speed: Double)

The Vehicle case class is used to for representing moveable objects.

Value parameters

clock

the animation clock

color

the color of the vehicle

id

the vehicle's unique identifier

location

the location of the vehicle in the scene

size

the size of the vehicle

speed

the speed of the vehicle

Attributes

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

Members list

Value members

Concrete methods

override def toString: String

Convert this vehicle to a string.

Convert this vehicle to a string.

Attributes

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val body: Sphere
val startTime: Double
val surface: PhongMaterial