Lynx-class: An S4 class to represent a larger predator.

Description Slots

Description

An S4 class to represent a larger predator.

Slots

location

A numerical vector of length 2 specifying the x- and y-position of the object [Default: c(0, 0)].

velocity

A numeric vector for specifying the object's velocity, where the first value specifies the velocity in the x-direction and the second in the y-direction [Default: c(0.0, 0.0)].

active

A length-one logical vector indicating whether the object is active [Default: TRUE].


mverouden/rsfour documentation built on May 25, 2019, 5:01 a.m.